Menu
wpseek
mobile
Search
wp_slash
wp_slash
(
$value
)
Parameters:
(string|array)
value
String or array of data to slash.
Returns:
(string|array) Slashed `$value`, in the same type as supplied.
Defined at:
wp-includes/formatting.php
, line 5780
Change Log:
5:
.
Introduced in WordPress:
3.6.0
Deprecated in WordPress:
—
Description
Adds slashes to a string or recursively adds slashes to strings within an array.This should be used when preparing data for core API that expects slashed data. This should not be used to escape data going directly into an SQL query.
Related Functions
wp_unslash
,
wp_hash
,
wp_styles
,
wp_rss
,
deslash
Top Google Results
User discussions
More ...
New topic ...
wpseek
mobile
Recently added
4
_build_block_template_object_from_post_object
wp_autoload_values_to_autoload
wp_determine_option_autoload_value
wp_filter_default_autoload_value_via_option_size
My Bookmarks
- Soon -
About
Imprint
Privacy Policy