WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp referer field

Description

Retrieves or displays the referer hidden form field.

The referer field value will be the value of the 'REQUEST_URI' element of the $_SERVER PHP superglobal variable, and the field name will be '_wp_http_referer' , in case you wanted to check manually.

Usage

<?php wp_referer_field$echo ?>

Parameters

$echo
(boolean) (optional) Whether to display or return the referer hidden form field.
Default: true

Return Values

(string) 
Referer field.

Examples

Notes

Change Log

Since: 2.0.4

Source File

wp_referer_field() is located in wp-includes/functions.php.

Related

Nonce functions: wp_explain_nonce(), wp_nonce_ays(), wp_nonce_field(), wp_nonce_url(), wp_verify_nonce(), wp_create_nonce(), check_admin_referer(), check_ajax_referer(), wp_referer_field()

Nonce hooks: nonce_life, nonce_user_logged_out, explain_nonce_(verb)-(noun), check_admin_referer

See also index of Function Reference and index of Template Tags.