W3cubDocs

/WordPress

stripslashes_deep( mixed $value )

Navigates through an array, object, or scalar, and removes slashes from the values.

Description

Parameters

$value

(mixed) (Required) The value to be stripped.

Return

(mixed) Stripped value.

Source

File: wp-includes/formatting.php

function stripslashes_deep( $value ) {
	return map_deep( $value, 'stripslashes_from_strings_only' );
}

Changelog

Version Description
2.0.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/stripslashes_deep