wordpress / latest / functions / wp_unslash.html

wp_unslash( string|array $value ): string|array

Removes slashes from a string or recursively removes slashes from strings within an array.

Description

This should be used to remove slashes from data passed to core API that expects data to be unslashed.

Parameters

$value string|array Required
String or array of data to unslash.

Return

string|array Unslashed $value, in the same type as supplied.

Source

File: wp-includes/formatting.php. View all references

function wp_unslash( $value ) {
	return stripslashes_deep( $value );
}

Uses

Uses Description

Used By

Used By Description

Changelog

Version Description
3.6.0 Introduced.

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