wp_slash_strings_only
- wp_slash_strings_only is deprecated since version 5.6.0!
Alternative: Use
wp_slash_strings_only ( $value )
Parameters:- (mixed) value Scalar or array of scalars.
See:Returns:Defined at: - Introduced in WordPress: 5.3.0
- Deprecated in WordPress: 5.6.0
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.