wp_http_accept_encoding

过滤钩子
apply_filters( 'wp_http_accept_encoding', $type, $url, $args )
参数
  • (string[]) $type Array of what encoding types to accept and their priority values.
    Required:
  • (string) $url URL of the HTTP request.
    Required:
  • (array) $args HTTP request arguments.
    Required:
定义位置
相关勾子
http_request_versionwp_http_cookie_valuewp_privacy_export_expirationhttp_response
相关方法
wp_set_internal_encoding_wp_http_get_objectwp_img_tag_add_decoding_attrwp_parse_auth_cookieupload_space_settingwp_attachment_is
引入
3.6.0
弃用
-

wp_http_accept_encoding: 这是一个WordPress函数,用于检查客户端是否支持HTTP内容编码。它返回一个布尔值,表示客户端是否支持该编码类型。

过滤允许的编码类型。

$type = apply_filters( 'wp_http_accept_encoding', $type, $url, $args );

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-07 06:33:36

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

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

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