On this page
addslashes_gpc( string|array $gpc ): string|array
Adds slashes to a string or recursively adds slashes to strings within an array.
Parameters
$gpcstring|array Required-
String or array of data to slash.
Return
string|array Slashed $gpc.
Source
File: wp-includes/formatting.php. View all references
function addslashes_gpc( $gpc ) {
return wp_slash( $gpc );
}
Related
Uses
| Uses | Description |
|---|---|
| wp_slash() wp-includes/formatting.php | Adds slashes to a string or recursively adds slashes to strings within an array. |
Used By
| Used By | Description |
|---|---|
| WP_Query::get_posts() wp-includes/class-wp-query.php | Retrieves an array of posts based on query variables. |
Changelog
| Version | Description |
|---|---|
| 0.71 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/addslashes_gpc