1 | <?php |
||
16 | class Kirki_Setting_User_Meta 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 = 'user_meta'; |
||
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 ) { |
||
53 | |||
54 | /** |
||
55 | * Set the root value for a setting, especially for multidimensional ones. |
||
56 | * |
||
57 | * @access protected |
||
58 | * @since 3.0.0 |
||
59 | * @param mixed $value Value to set as root of multidimensional setting. |
||
60 | * @return bool Whether the multidimensional root was updated successfully. |
||
61 | */ |
||
62 | protected function set_root_value( $value ) { |
||
74 | |||
75 | /** |
||
76 | * Save the value of the setting, using the related API. |
||
77 | * |
||
78 | * @access protected |
||
79 | * @since 3.0.0 |
||
80 | * @param mixed $value The value to update. |
||
81 | * @return bool The result of saving the value. |
||
82 | */ |
||
83 | protected function update( $value ) { |
||
87 | |||
88 | /** |
||
89 | * Fetch the value of the setting. |
||
90 | * |
||
91 | * @access protected |
||
92 | * @since 3.0.0 |
||
93 | * @return mixed The value. |
||
94 | */ |
||
95 | public function value() { |
||
98 | } |
||
99 |