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 strings to unslash.
    Required: Yes
Returns:
  • (string|array) Unslashed $value
Defined at:
Codex:

Remove slashes from a string or array of strings.

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