addslashes_gpc() wordpress function and usage

Home / WordPress / WordPress Wiki / addslashes_gpc() wordpress function and usage

addslashes_gpc( string $gpc )

This function is used in wordpress to adds slashes to escape strings.

Description

Slashes will first be removed if magic_quotes_gpc is set, see https://www.php.net/magic_quotes for more details.

Parameters

$gpc

(string) (Required) The string returned from HTTP request data.

Return

(string) Returns a string escaped with slashes.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments