Total Complexity | 6 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class Kirki_Field_Kirki_Generic extends Kirki_Field { |
||
16 | |||
17 | /** |
||
18 | * Sets the control type. |
||
19 | * |
||
20 | * @access protected |
||
21 | */ |
||
22 | protected function set_type() { |
||
23 | $this->type = 'kirki-generic'; |
||
24 | } |
||
25 | |||
26 | |||
27 | /** |
||
28 | * Sets the $choices |
||
29 | * |
||
30 | * @access protected |
||
31 | */ |
||
32 | protected function set_choices() { |
||
33 | if ( ! is_array( $this->choices ) ) { |
||
|
|||
34 | $this->choices = array(); |
||
35 | } |
||
36 | if ( ! isset( $this->choices['element'] ) ) { |
||
37 | $this->choices['element'] = 'input'; |
||
38 | } |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Sets the $sanitize_callback |
||
43 | * |
||
44 | * @access protected |
||
45 | */ |
||
46 | protected function set_sanitize_callback() { |
||
54 | } |
||
55 | } |
||
56 |