WordPress at Your Fingertips
function is not described

WP_Customize_Control::value() public WP 3.4.0

Fetch a setting's value. Grabs the main setting by default.

{} It's a method of the class: WP_Customize_Control{}

No Hooks.


Mixed. The requested setting's value, if the setting exists.


$WP_Customize_Control = new WP_Customize_Control();
$WP_Customize_Control->value( $setting_key );


Since 3.4.0 Introduced.

Code of WP_Customize_Control::value() WP 5.7.2

final public function value( $setting_key = 'default' ) {
	if ( isset( $this->settings[ $setting_key ] ) ) {
		return $this->settings[ $setting_key ]->value();