allowed_http_origins

过滤钩子
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:
定义位置
相关勾子
allowed_http_originhttp_originallowed_optionsallowed_themesall_plugins
相关方法
get_allowed_http_originsis_allowed_http_originget_http_originallowed_tagsallowed_http_request_hostsadd_allowed_options
引入
3.4.0
弃用
-

allowed_http_origins: 这个过滤器钩子允许开发者为特定的请求改变允许的HTTP起源列表。

改变HTTP请求允许的来源类型。

return apply_filters( 'allowed_http_origins', $allowed_origins );

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-14 15:36:34

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: