wpseek.com
WordPress开发者和主题制作者的搜索引擎



allowed_redirect_hosts › WordPress过滤钩子

Since2.3.0
已弃用n/a
apply_filters( 'allowed_redirect_hosts', array( $wpp['host'] )
参数: (2)
  • (string[]) $hosts An array of allowed host names.
    Required: Yes
  • (string) $host The host name of the redirect destination; empty string if not set.
    Required: Yes
定义在:
文档:

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'] : '' );