ms_allowed_http_request_hosts()
ms_allowed_http_request_hosts( bool $is_external, string $host )
为安全的HTTP请求列出多站点安装中的任何域。
Whitelists any domain in a multisite installation for safe HTTP requests.
说明(Description)
附加到“http_request_host_is_external”筛选器。
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$is_external | (bool) | 必需 | |
$host | (string) | 必需 |
返回(Return)
(bool)
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.6.0 | wp-includes/http.php:629 | 0 | 3 |
ms_allowed_http_request_hosts() 为WP2原创文章,链接:https://www.wp2.cn/functions/ms_allowed_http_request_hosts/