Filters the list of allowed hosts to redirect to.
Parameters
$hostsstring[]- An array of allowed host names.
$hoststring- The host name of the redirect destination; empty string if not set.
Source
$allowed_hosts = (array) apply_filters( 'allowed_redirect_hosts', array( $wpp['host'] ), isset( $lp['host'] ) ? $lp['host'] : '' );
Changelog
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |
Allow additional redirect hosts
You can allow additional hosts when validating redirects by using the allowed_redirect_hosts filter.