A WordPress-centric search engine for devs and theme authors



allowed_redirect_hosts ›

Since2.3.0
Deprecatedn/a
apply_filters( 'allowed_redirect_hosts', array( $wpp['host'] )
Parameters: (2)
  • (array) $hosts An array of allowed hosts.
    Required: Yes
  • (bool|string) $host The parsed host; empty if not isset.
    Required: Yes
Defined at:
Codex:

Filters the whitelist of hosts to redirect to.





Source

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