wordpress / latest / hooks / allowed_redirect_hosts.html

apply_filters( 'allowed_redirect_hosts', string[] $hosts, string $host )

Filters the list of allowed hosts to redirect to.

Parameters

$hosts string[]
An array of allowed host names.
$host string
The host name of the redirect destination; empty string if not set.

Source

File: wp-includes/pluggable.php. View all references

$allowed_hosts = (array) apply_filters( 'allowed_redirect_hosts', array( $wpp['host'] ), isset( $lp['host'] ) ? $lp['host'] : '' );

Used By

Used By Description

Changelog

Version Description
2.3.0 Introduced.

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