Summery Summery
Fetch a setting’s value.
Syntax Syntax
Description Description
Grabs the main setting by default.
Parameters Parameters
- $setting_key
-
(Optional)
Default value: 'default'
Return Return
(mixed) The requested setting's value, if the setting exists.
Source Source
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(); } }
Advertisement
Changelog Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |