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_2352', 10, 2 );
function filter_function_name_2352( $location, $status ){
	// filter...

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

Changelog

Since 2.1.0 Introduced.

Where the hook is called

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

Where in WP core the hook is used

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