1 | <?php |
||
16 | class Kirki_Setting_Site_Option extends WP_Customize_Setting { |
||
17 | |||
18 | /** |
||
19 | * Type of customize settings. |
||
20 | * |
||
21 | * @access public |
||
22 | * @since 3.0.0 |
||
23 | * @var string |
||
24 | */ |
||
25 | public $type = 'site_option'; |
||
26 | |||
27 | /** |
||
28 | * Get the root value for a setting, especially for multidimensional ones. |
||
29 | * |
||
30 | * @access protected |
||
31 | * @since 3.0.0 |
||
32 | * @param mixed $default Value to return if root does not exist. |
||
33 | * @return mixed |
||
34 | */ |
||
35 | protected function get_root_value( $default = null ) { |
||
38 | |||
39 | /** |
||
40 | * Set the root value for a setting, especially for multidimensional ones. |
||
41 | * |
||
42 | * @access protected |
||
43 | * @since 3.0.0 |
||
44 | * @param mixed $value Value to set as root of multidimensional setting. |
||
45 | * @return bool Whether the multidimensional root was updated successfully. |
||
46 | */ |
||
47 | protected function set_root_value( $value ) { |
||
50 | |||
51 | /** |
||
52 | * Save the value of the setting, using the related API. |
||
53 | * |
||
54 | * @access protected |
||
55 | * @since 3.0.0 |
||
56 | * @param mixed $value The value to update. |
||
57 | * @return bool The result of saving the value. |
||
58 | */ |
||
59 | protected function update( $value ) { |
||
62 | |||
63 | /** |
||
64 | * Fetch the value of the setting. |
||
65 | * |
||
66 | * @access protected |
||
67 | * @since 3.0.0 |
||
68 | * @return mixed The value. |
||
69 | */ |
||
70 | public function value() { |
||
73 | } |
||
74 |