W3cubDocs

/WordPress

apply_filters( 'allowed_redirect_hosts', array $hosts, bool|string $host )

Filters the whitelist of hosts to redirect to.

Description

Parameters

$hosts

(array) An array of allowed hosts.

$host

(bool|string) The parsed host; empty if not isset.

Source

File: wp-includes/pluggable.php

View on Trac

Changelog

Version Description
2.3.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/allowed_redirect_hosts