WordPress at a glance
filter is not described

allowed_redirect_hosts filter-hook . WP 2.3.0

Filters the whitelist of hosts to redirect to.


add_filter( 'allowed_redirect_hosts', 'filter_function_name_6294', 10, 2 );
function filter_function_name_6294( $hosts, $host ){
	// filter...

	return $hosts;
An array of allowed hosts.
The parsed host; empty if not isset.

Where the hook is called

wp-includes/pluggable.php 1421
$allowed_hosts = (array) apply_filters( 'allowed_redirect_hosts', array( $wpp['host'] ), isset( $lp['host'] ) ? $lp['host'] : '' );

Where the hook is used (in WP core)

wp-includes/ms-default-filters.php 74
add_filter( 'allowed_redirect_hosts', 'redirect_this_site' );