post_value()
public method
The name "post_value" is a carry-over from when the customized state was exclusively
sourced from $_POST['customized']. Nevertheless, the value returned will come
from the current changeset post and from the incoming post data.
public post_value ( WP_Customize_Setting $setting, mixed $default = null ) : string | mixed |
$setting |
WP_Customize_Setting |
A WP_Customize_Setting derived object. |
$default |
mixed |
Value returned $setting has no post value (added in 4.2.0)
or the post value is invalid (added in 4.6.0). |
return |
string | mixed |
$post_value Sanitized value or the $default provided. |