HTTP/2 301
server: nginx
date: Sun, 12 Oct 2025 02:36:11 GMT
content-type: text/html; charset=UTF-8
location: https://developer.wordpress.org/reference/hooks/wp_http_accept_encoding/
x-content-type-options: nosniff
content-language: en
x-ua-compatible: IE=Edge
vary: Accept-Encoding, Cookie
expires: Thu, 01 Jan 1970 00:00:00 GMT
cache-control: no-cache, no-store, max-age=0, must-revalidate
pragma: no-cache
alt-svc: h3=":443"; ma=86400
strict-transport-security: max-age=31536000
HTTP/2 200
server: nginx
date: Sun, 12 Oct 2025 02:36:13 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
vary: accept, content-type
link:
; rel="https://api.w.org/"
link:
; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
x-frame-options: SAMEORIGIN
content-encoding: gzip
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 1
wp_http_accept_encoding – Hook | Developer.WordPress.org
apply_filters( ‘wp_http_accept_encoding’, string[] $type, string $url, array $args )
Filters the allowed encoding types.
$type
string[]Array of what encoding types to accept and their priority values.
$url
stringURL of the HTTP request.
$args
arrayHTTP request arguments.
Note that the filter function must return a $type value after it is finished processing or the HTTP call will fail.
Version | Description |
---|
3.6.0 | Introduced. |
Example Migrated from Codex: