PluginProbe
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster / trunk
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster vtrunk
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 1.8.1 All 42 releases
sellkit / includes / elementor / modules / checkout / fields / hidden.php

hidden.php in SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster trunk, at includes/elementor/modules/checkout/fields/hidden.php

60 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\Elementor\Modules\Checkout\Fields;
4
5 defined( 'ABSPATH' ) || die();
6
7 use Sellkit\Elementor\Modules\Checkout\Fields\Base;
8
9 /**
10 * Class select.
11 *
12 * @since 1.1.0
13 */
14 class Hidden extends Base {
15 /**
16 * Type of field.
17 *
18 * @return string
19 * @since 1.1.0
20 */
21 public function type() {
22 return 'hidden';
23 }
24
25 /**
26 * Adds additional class for fields if required.
27 *
28 * @param array $args checkout fields options.
29 * @param string $key field key.
30 * @return array
31 * @since 1.1.0
32 */
33 protected function additional_class( $args, $key ) {
34 $args['class'][] = 'sellkit-hide-completely';
35
36 return $args;
37 }
38
39 /**
40 * Customized html per field.
41 *
42 * @param string $field field html string.
43 * @param array $args checkout fields options.
44 * @param string $key key of field.
45 * @return void
46 * @since 1.1.0
47 */
48 public function field( $field, $args, $key ) {
49 ?>
50 <input
51 type="hidden"
52 class="input-text"
53 name="<?php echo esc_attr( $key ); ?>"
54 id="<?php echo esc_attr( $key ); ?>"
55 value="<?php echo ( array_key_exists( 'default', $args ) ) ? esc_attr( $args['default'] ) : ''; ?>"
56 >
57 <?php
58 }
59 }
60