WordPress at a glance
filter is not described

x_redirect_by filter-hook . WP 5.1.0

Filters the X-Redirect-By header.

Allows applications to identify themselves when they're doing a redirect.


add_filter( 'x_redirect_by', 'filter_function_name_5128', 10, 3 );
function filter_function_name_5128( $x_redirect_by, $status, $location ){
	// filter...

	return $x_redirect_by;
The application doing the redirect.
Status code to use.
The path to redirect to.

Список изменений

С версии 5.1.0 Введена.

Где вызывается хук

wp-includes/pluggable.php 1294
$x_redirect_by = apply_filters( 'x_redirect_by', $x_redirect_by, $status, $location );

Где используется хук в ядре WP

Использование не найдено.