wpseek.com
A WordPress-centric search engine for devs and theme authors



allowed_redirect_hosts › WordPress Filter Hooks

Since2.3.0
Deprecatedn/a
apply_filters( 'allowed_redirect_hosts', array( $wpp['host'] )
Parameters: (2)
  • () hosts An array of allowed host names.
    Required: Yes
  • () host The host name of the redirect destination; empty string if not set.
    Required: Yes
Defined at:
Codex:

Filters the list of allowed hosts to redirect to.





Source

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