Codex

Function Reference/wp referer field

Contents

Description

Retrieve or display referer hidden field for forms.

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.

Usage

<?php wp_referer_field$echo ?>

Parameters

$echo
(boolean) (optional) Whether to echo or return the referer 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

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