过滤允许的编码类型。
原型
apply_filters( 'wp_http_accept_encoding', array $type, string $url, array $args )
参数
$type
(array)
允许编码类型。接受’gzinflate’,‘gzuncompress’,‘gzdecode’。
$url
(string)
HTTP请求的URL。
$args
(array)
HTTP请求参数。
源文件
路径:wp-includes/class-wp-http-encoding.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/wp_http_accept_encoding/