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_9188', 10, 2 );
function filter_function_name_9188( $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 1371
$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 50
add_filter( 'allowed_redirect_hosts', 'redirect_this_site' );