is_allowed_http_origin()
is_allowed_http_origin( null|string $origin = null )
确定HTTP源是否为授权源。
Determines if the HTTP origin is an authorized one.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$origin | (null | string) | 可选 | 源URL。如果未提供,则使用get_http_origin()的值。 |
返回(Return)
(string)如果允许,则为原始URL;如果不允许,则为空string。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.4.0 | wp-includes/http.php:455 | 1 function | 4 |
is_allowed_http_origin() 为WP2原创文章,链接:https://www.wp2.cn/functions/is_allowed_http_origin/