WordPress at a glance
filter is not described

wp_redirect filter-hook . WP 2.1.0

Filters the redirect location.

Usage

add_filter( 'wp_redirect', 'filter_function_name_1541', 10, 2 );
function filter_function_name_1541( $location, $status ){
	// filter...

	return $location;
}
$location(string)
The path or URL to redirect to.
$status(int)
The HTTP response status code to use.

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

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

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

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

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

wp-includes/class-wp-customize-manager.php 1923
add_filter( 'wp_redirect', array( $this, 'add_state_query_params' ) );