wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_unslash › WordPress Function

Depuis3.6.0
Dépréciéen/a
wp_unslash ( $value )
Paramètres:
  • (string|array) $value String or array of data to unslash.
    Requis: Oui
Retourne:
  • (string|array) Unslashed `$value`, in the same type as supplied.
Défini(e) dans:
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.


Fonctions en relation: wp_slash, wp_hash, wp_untrash_post, wp_styles, wp_rss

Source

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