allowed_redirect_hosts

SummerySummery

Filters the whitelist of hosts to redirect to.

Syntax

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

ParametersParameters

$hosts

(string[]) An array of allowed host names.

$host

(string) The host name of the redirect destination; empty string if not set.

SourceSource

File: wp-includes/pluggable.php

ChangelogChangelog

Changelog
Version Description
2.3.0 Introduced.
Scroll to Top