Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_slash_strings_only ›

Da5.3.0
Deprecaton/a
wp_slash_strings_only ( $value )
Parametri:
  • (mixed) $value Scalar or array of scalars.
    Richiesto:
Ritorna:
  • (mixed) Slashes $value
Definito a:
Codex:

Adds slashes to only string values in an array of values.

This should be used when preparing data for core APIs that expect slashed data. This should not be used to escape data going directly into an SQL query.



Sorgenti

function wp_slash_strings_only( $value ) {
	return map_deep( $value, 'addslashes_strings_only' );
}