WP_Customize_Control::value( string $setting_key = 'default' )

Fetch a setting’s value.

Description Description

Grabs the main setting by default.

Top ↑

Parameters Parameters


(string) (Optional)

Default value: 'default'

Top ↑

Return Return

(mixed) The requested setting's value, if the setting exists.

Top ↑

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();

Top ↑

Changelog Changelog

Version Description
3.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.