A WordPress-centric search engine for devs and theme authors



wp_get_original_referer ›

Since2.0.4
Deprecatedn/a
wp_get_original_referer ( No parameters )
Returns:
  • (string|false) False if no original referer or original referer if set.
Defined at:
Codex:

Retrieve original referer that was posted, if it exists.



Source

function wp_get_original_referer() {
	if ( ! empty( $_REQUEST['_wp_original_http_referer'] ) && function_exists( 'wp_validate_redirect' ) ) {
		return wp_validate_redirect( wp_unslash( $_REQUEST['_wp_original_http_referer'] ), false );
	}
	return false;
}