Uses
Uses | Description |
---|---|
wp-includes/formatting.php: wp_unslash() | Remove slashes from a string or array of strings. |
Retrieves an unslashed post value or return a default.
(string) (Required) Post value.
(mixed) (Optional) Default post value.
Default value: null
(mixed) Unslashed post value or default value.
File: wp-includes/class-wp-customize-widgets.php
protected function get_post_value( $name, $default = null ) { if ( ! isset( $_POST[ $name ] ) ) { return $default; } return wp_unslash( $_POST[ $name ] ); }
Version | Description |
---|---|
3.9.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_widgets/get_post_value