WP_Customize_Setting::post_value( mixed $default = null )
Fetch and sanitize the $_POST value for the setting.
Description Description
During a save request prior to save, post_value() provides the new value while value() does not.
Parameters Parameters
- $default
-
(mixed) (Optional) A default value which is used as a fallback. Default is null.
Default value: null
Return Return
(mixed) The default value on failure, otherwise the sanitized and validated value.
Source Source
File: wp-includes/class-wp-customize-setting.php
final public function post_value( $default = null ) { return $this->manager->post_value( $this, $default ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |