WordPress at a glance
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.

Return

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

Usage

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

Default: 'default'

Changelog

Since 3.4.0 Introduced.

Code of WP_Customize_Control::value() WP 5.5.1

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