wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_unslash › WordPress Function

Since3.6.0
Deprecatedn/a
wp_unslash ( $value )
Parameters:
  • (string|array) $value String or array of data to unslash.
    Required: Yes
Returns:
  • (string|array) Unslashed `$value`, in the same type as supplied.
Defined at:
Codex:

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

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


Source

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