PluginProbe
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster / 2.7.0
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster v2.7.0
2.7.0 2.6.0 trunk 1.1.0 1.1.4 1.2.1 1.2.2 1.2.3 1.2.5 1.2.9 1.3.1 1.3.2 1.5.0 1.5.1 1.5.4 1.5.7 1.5.8 1.5.9 1.6.2 1.6.5 1.6.8 1.7.2 1.7.4 1.7.5 1.7.9 All 43 releases
sellkit / includes / block-editor / blocks / checkout / form-fields / hidden.php

hidden.php in SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster 2.7.0, at includes/block-editor/blocks/checkout/form-fields/hidden.php

53 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Sellkit\Blocks\Checkout\Fields;
4
5 defined( 'ABSPATH' ) || die();
6
7 use Sellkit\Blocks\Checkout\Fields\Base;
8
9 /**
10 * Class hidden.
11 *
12 * @since 2.3.5
13 */
14 class Hidden extends Base {
15 /**
16 * Type of field.
17 *
18 * @return string
19 * @since 2.3.5
20 */
21 public function type() {
22 return 'hidden';
23 }
24
25 /**
26 * Customized html per field.
27 *
28 * @param string $field field html string.
29 * @param array $args checkout fields options.
30 * @param string $key key of field.
31 * @return void
32 * @since 2.3.5
33 */
34 public function field( $field, $args, $key ) {
35 $placeholder = $this->placeholder_required_value( $args );
36
37 ?>
38 <p id="<?php echo esc_attr( $key ); ?>_field" data-priority="">
39 <span class="woocommerce-input-wrapper">
40 <input
41 type="hidden"
42 class="input-hidden empty"
43 name="<?php echo esc_attr( $key ); ?>"
44 id="<?php echo esc_attr( $key ); ?>"
45 placeholder="<?php echo esc_attr( $placeholder ); ?>"
46 value="<?php echo ( array_key_exists( 'default', $args ) ) ? esc_attr( $args['default'] ) : ''; ?>"
47 >
48 </span>
49 </p>
50 <?php
51 }
52 }
53