On this page
stripslashes_deep( mixed $value ): mixed
Navigates through an array, object, or scalar, and removes slashes from the values.
Parameters
$valuemixed Required-
The value to be stripped.
Return
mixed Stripped value.
More Information
If an array is passed, the array_map() function causes a callback to pass the value back to the function. The slashes from each value will be removed using the stripslashes() function.
Source
File: wp-includes/formatting.php. View all references
function stripslashes_deep( $value ) {
return map_deep( $value, 'stripslashes_from_strings_only' );
}
Related
Uses
| Uses | Description |
|---|---|
| map_deep() wp-includes/formatting.php | Maps a function to all non-iterable elements of an array or an object. |
Used By
| Used By | Description |
|---|---|
| wp_ajax_send_attachment_to_editor() wp-admin/includes/ajax-actions.php | Ajax handler for sending an attachment to the editor. |
| wp_unslash() wp-includes/formatting.php | Removes slashes from a string or recursively removes slashes from strings within an array. |
| WP_Widget::update_callback() wp-includes/class-wp-widget.php | Handles changed settings (Do NOT override). |
Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/stripslashes_deep