wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_slash_strings_only › WordPress Function

Since5.3.0
已弃用5.6.0
wp_slash_strings_only ( $value )
参数:
  • (mixed) $value Scalar or array of scalars.
    Required: Yes
查看:
返回:
  • (mixed) Slashes $value
定义在:
文档:

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.


源码

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