wp_original_referer_field


wp_original_referer_field ( $echo = true, $jump_back_to = 'current' )

Parameters:
  • (bool) $echo Optional. Whether to echo the original http referer. Default true.
  • (string) $jump_back_to Optional. Can be 'previous' or page you want to jump back to. Default 'current'.
Returns:
  • (string) Original referer field.
Defined at:

Description

Retrieve or display original referer hidden field for forms.

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.

Related Functions

wp_get_original_referer, wp_referer_field, wp_get_referer, wp_get_raw_referer, wp_nonce_field

Top Google Results

User discussions

wpseek mobile