wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_unslash › WordPress Function

Od3.6.0
Przestarzałyn/a
wp_unslash ( $value )
Parametry:
  • (string|array) $value String or array of data to unslash.
    Wymagane: Tak
Powrót:
  • (string|array) Unslashed `$value`, in the same type as supplied.
Zdefiniowane na:
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.


Źródło

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