wp_slash_strings_only


wp_slash_strings_only ( $value )

Parameters:
  • (mixed) $value Scalar or array of scalars.
Returns:
  • (mixed) Slashes $value
Defined at:

Description

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.

Related Functions

addslashes_strings_only, stripslashes_from_strings_only, wp_kses_stripslashes, wp_user_settings, wp_set_all_user_settings

Top Google Results

User discussions

wpseek mobile