Total Complexity | 6 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class Kirki_Field_Multicheck extends Kirki_Field { |
||
16 | |||
17 | /** |
||
18 | * Sets the control type. |
||
19 | * |
||
20 | * @access protected |
||
21 | */ |
||
22 | protected function set_type() { |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * Sets the $sanitize_callback |
||
28 | * |
||
29 | * @access protected |
||
30 | */ |
||
31 | protected function set_sanitize_callback() { |
||
32 | |||
33 | // If a custom sanitize_callback has been defined, |
||
34 | // then we don't need to proceed any further. |
||
35 | if ( ! empty( $this->sanitize_callback ) ) { |
||
36 | return; |
||
37 | } |
||
38 | $this->sanitize_callback = array( $this, 'sanitize' ); |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * The sanitize method that will be used as a falback |
||
43 | * |
||
44 | * @param string|array $value The control's value. |
||
45 | */ |
||
46 | public function sanitize( $value ) { |
||
49 | } |
||
50 | } |
||
51 |