WordPress at a glance
filter is not described

wp_redirect filter-hook . WP 2.1.0

Filters the redirect location.


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

	return $location;
The path to redirect to.
Status code to use.

Where the hook is called

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

Where the hook is used (in WP core)

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