WordPress at a glance
function is not described

addslashes_gpc() WP 0.71

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.

No Hooks.


String. Returns a string escaped with slashes.


addslashes_gpc( $gpc );
$gpc(string) (required)
The string returned from HTTP request data.


Since 0.71 Introduced.

Code of addslashes_gpc() WP 5.7.2

function addslashes_gpc( $gpc ) {
	return wp_slash( $gpc );