WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/wp get original referer

Contents

Description

Retrieve original referer that was posted, if it exists.

Usage

<?php wp_get_original_referer() ?>

Parameters

None.

Return Values

(string|boolean) 
False if no original referer or original referer if set.

Examples

Notes

  • HTTP referer is an server variable. 'referer' is deliberately miss-spelled.

Change Log

Since: 2.0.4

Source File

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

Related

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