wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_unslash › WordPress Function

Da3.6.0
Deprecaton/a
› wp_unslash ( $value )
Parametri:
  • (string|array) $value String or array of data to unslash.
    Richiesto: Sì
Ritorna:
  • (string|array) Unslashed `$value`, in the same type as supplied.
Definito a:
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.


Sorgenti

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