WP_Customize_Setting::post_value()publicWP 3.4.0

Fetch and sanitize the $_POST value for the setting.

During a save request prior to save, post_value() provides the new value while value() does not.

Метод класса: WP_Customize_Setting{}

Хуков нет.


Разное. The default value on failure, otherwise the sanitized and validated value.


$WP_Customize_Setting = new WP_Customize_Setting();
$WP_Customize_Setting->post_value( $default_value );
A default value which is used as a fallback.
По умолчанию: null

Список изменений

С версии 3.4.0 Введена.

Код WP_Customize_Setting::post_value() WP 6.5.5

final public function post_value( $default_value = null ) {
	return $this->manager->post_value( $this, $default_value );