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



allowed_http_origins › WordPress过滤钩子

Since3.4.0
已弃用n/a
apply_filters( 'allowed_http_origins', $allowed_origins )
参数:
  • (string[]) $allowed_origins { Array of default allowed HTTP origins. @type string $0 Non-secure URL for admin origin. @type string $1 Secure URL for admin origin. @type string $2 Non-secure URL for home origin. @type string $3 Secure URL for home origin. }
    Required: Yes
定义在:
文档:

Change the origin types allowed for HTTP requests.





源码

return apply_filters( 'allowed_http_origins', $allowed_origins );