allowed_http_origins
apply_filters( ‘allowed_http_origins’, string[] $allowed_origins )
过滤器::更改HTTP请求允许的源类型。
Filter Hook: Change the origin types allowed for HTTP requests.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$allowed_origins | (string[]) | 默认允许的HTTP源的数组。(字符串)管理源的非安全URL。 |
‘1’(string) Secure URL for admin origin. | ‘2’(string) Non-secure URL for home origin. | “3”(字符串)家庭来源的安全URL。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.4.0 | wp-includes/http.php:444 | 1 | 0 |
allowed_http_origins 为WP2原创文章,链接:https://www.wp2.cn/hook/allowed_http_origins/