wp_get_original_referer
wp_get_referer
wp_original_referer_field
wp_referer_field
wp_get_original_referer() : string | boolean
wp_get_referer() : string | boolean
wp_original_referer_field(boolean $echo= true
, string $jump_back_to= 'current'
) : string
The input name is '_wp_original_http_referer' and will be either the same value of wp_referer_field(), if that was posted already or it will be the current page, if it doesn't exist.
package | WordPress |
---|---|
package | WordPress |
subpackage | Security |
since | 2.0.4 |
boolean
Whether to echo the original http referer
string
Optional, default is 'current'. Can be 'previous' or page you want to jump back to.
string
Original referer field.wp_referer_field(boolean $echo = true
) : string
The referer link is the current Request URI from the server super global. The input name is '_wp_http_referer', in case you wanted to check manually.
package | WordPress |
---|---|
package | WordPress |
subpackage | Security |
since | 2.0.4 |
boolean
Whether to echo or return the referer field.
string
Referer field.