# sellkit/trunk/includes/elementor/modules/optin/fields/text.php

SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster, version trunk. 33 lines.

- Page: https://pluginprobe.com/plugins/sellkit/trunk/code/includes/elementor/modules/optin/fields/text.php
- Raw: https://pluginprobe.com/plugins/sellkit/trunk/raw/includes/elementor/modules/optin/fields/text.php
- Modified: 2026-04-29T03:49:52+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/sellkit/trunk/code/includes/elementor/modules/optin/fields/text.php#L10-L20`.

```php
<?php

defined( 'ABSPATH' ) || die();

class Sellkit_Elementor_Optin_Field_Text extends Sellkit_Elementor_Optin_Field_Base {

	public static function get_field_type() {
		return 'text';
	}

	public function get_input_type() {
		return 'text';
	}

	public function render_content() {
		?>
		<input <?php echo $this->widget->get_render_attribute_string( 'field-' . esc_attr( $this->get_id() ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Elementor-generated attributes. ?>>
		<?php
	}

	public static function get_additional_controls() {
		$commons = parent::get_common_controls();

		return [
			'label' => $commons['label'],
			'field_value' => $commons['field_value'],
			'placeholder' => $commons['placeholder'],
			'required' => $commons['required'],
			'width_responsive' => $commons['width_responsive'],
		];
	}
}

```
