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 );
$default_value(разное)
A default value which is used as a fallback.
По умолчанию: null

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

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

Код WP_Customize_Setting::post_value() WP 6.0.1

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