A WordPress-centric search engine for devs and theme authors



wp_unslash ›

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.
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 );
}