# sellkit/1.2.9/includes/elementor/modules/checkout/fields/text.php

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

- Page: https://pluginprobe.com/plugins/sellkit/1.2.9/code/includes/elementor/modules/checkout/fields/text.php
- Raw: https://pluginprobe.com/plugins/sellkit/1.2.9/raw/includes/elementor/modules/checkout/fields/text.php
- Modified: 2022-09-08T06:36:34+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/1.2.9/code/includes/elementor/modules/checkout/fields/text.php#L10-L20`.

```php
<?php

namespace Sellkit\Elementor\Modules\Checkout\Fields;

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

use Sellkit\Elementor\Modules\Checkout\Fields\Base;

/**
 * Class text.
 *
 * @since 1.1.0
 */
class Text extends Base {
	/**
	 * Type of field.
	 *
	 * @return string
	 * @since 1.1.0
	 */
	public function type() {
		return 'text';
	}

	/**
	 * Customized html per field.
	 *
	 * @param string $field field html string.
	 * @param array  $args checkout fields options.
	 * @param string $key key of field.
	 * @return void
	 * @since 1.1.0
	 */
	public function field( $field, $args, $key ) {
		?>
			<p id="<?php echo $key; ?>_field" data-priority="">
				<span class="woocommerce-input-wrapper">
					<input
						type="text"
						class="input-text empty"
						name="<?php echo esc_attr( $key ); ?>"
						id="<?php echo esc_attr( $key ); ?>"
						placeholder="<?php echo ( array_key_exists( 'label', $args ) ) ? esc_attr( $args['label'] ) : ''; ?>"
						value="<?php echo ( array_key_exists( 'default', $args ) ) ? esc_attr( $args['default'] ) : ''; ?>"
					>
				</span>
			</p>
		<?php
	}
}

```
