Retrieves unvalidated referer from the '_wp_http_referer' URL query variable or the HTTP referer.
Description
If the value of the '_wp_http_referer' URL query variable is not a string then it will be ignored. Do not use for redirects, use wp_get_referer() instead.
Return
string|false
Referer URL on success, false on failure.
Uses · 1
wp_unslash()Removes slashes from a string or recursively removes slashes from strings within an array.
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.