WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

wp_original_referer_field() WP 2.0.4

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.

Хуков нет.


Строку. Original referer field.


wp_original_referer_field( $echo, $jump_back_to );
Whether to echo the original http referer.
По умолчанию: true
Can be 'previous' or page you want to jump back to.
По умолчанию: 'current'

Код wp original referer field: wp-includes/functions.php WP 5.2.2

function wp_original_referer_field( $echo = true, $jump_back_to = 'current' ) {
	if ( ! $ref = wp_get_original_referer() ) {
		$ref = 'previous' == $jump_back_to ? wp_get_referer() : wp_unslash( $_SERVER['REQUEST_URI'] );
	$orig_referer_field = '<input type="hidden" name="_wp_original_http_referer" value="' . esc_attr( $ref ) . '" />';
	if ( $echo ) {
		echo $orig_referer_field;
	return $orig_referer_field;