Used By
Used By | Description |
---|---|
wp-includes/class-wp-customize-control.php: WP_Customize_Control::render_content() | Render the control’s content. |
Fetch a setting’s value.
Grabs the main setting by default.
(string) (Optional)
Default value: 'default'
(mixed) The requested setting's value, if the setting exists.
File: wp-includes/class-wp-customize-control.php
final public function value( $setting_key = 'default' ) { if ( isset( $this->settings[ $setting_key ] ) ) { return $this->settings[ $setting_key ]->value(); } }
Version | Description |
---|---|
3.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_control/value