Uses
Uses | Description |
---|---|
wp-includes/formatting.php: wp_slash() | Add slashes to a string or array of strings, in a recursive manner. |
Adds slashes to escape strings.
Slashes will first be removed if magic_quotes_gpc is set, see https://www.php.net/magic_quotes for more details.
(string) (Required) The string returned from HTTP request data.
(string) Returns a string escaped with slashes.
File: wp-includes/formatting.php
function addslashes_gpc( $gpc ) { return wp_slash( $gpc ); }
Version | Description |
---|---|
0.71 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/addslashes_gpc