wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_unslash › WordPress Function

Desde3.6.0
Obsoleton/a
wp_unslash ( $value )
Parâmetros:
  • (string|array) $value String or array of data to unslash.
    Required: Yes
Retorna:
  • (string|array) Unslashed `$value`, in the same type as supplied.
Definido em:
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.


Funções relacionadas: wp_slash, wp_hash, wp_untrash_post, wp_styles, wp_rss

Fonte

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