Core Function
View Source on Trac ↗ wp_slash()
wp_slash( mixed $value ) Adds slashes to a string or recursively adds slashes to strings within an array.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (string | | array) $value String or array of data to slash. Required |
Return Value
((string)
| array) Slashed `$value`, in the same type as supplied.
Function Information
Since Version
3.6.0
Source File
wp-includes/formatting.php
Advertisement