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.

Return

String. Returns a string escaped with slashes.

Usage

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

Changelog

Since 0.71 Introduced.

Code of addslashes_gpc() WP 5.7.2

<?php
function addslashes_gpc( $gpc ) {
	return wp_slash( $gpc );
}