W3cubDocs

/WordPress

wp_unslash( string|string[] $value )

Remove slashes from a string or array of strings.

Description

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

Parameters

$value

(string|string[]) (Required) String or array of strings to unslash.

Return

(string|string[]) Unslashed $value

Source

File: wp-includes/formatting.php

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

Changelog

Version Description
3.6.0 Introduced.

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