wordpress / latest / functions / addslashes_gpc.html

addslashes_gpc( string|array $gpc ): string|array

Adds slashes to a string or recursively adds slashes to strings within an array.

Parameters

$gpc string|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 );
}

Uses

Uses Description

Used By

Used By Description

Changelog

Version Description
0.71 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/addslashes_gpc