allowed_redirect_hosts

过滤钩子


apply_filters( 'allowed_redirect_hosts', array( $wpp['host'] )
参数
  • (string[])
    $hosts
    An array of allowed host names.
    Required:
  • (string)
    $host
    The host name of the redirect destination; empty string if not set.
    Required:
定义位置
  • wp-includes/pluggable.php
    , line 1600
引入
2.3.0
弃用

Filters the list of allowed hosts to redirect to.

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