apply_filters( 'wp_http_accept_encoding', string[] $type, string $url, array $args )

Filters the allowed encoding types.

Parameters

$type

(string[]) Array of what encoding types to accept and their priority values.

$url

(string) URL of the HTTP request.

$args

(array) HTTP request arguments.

More Information

Note that the filter function must return a $type value after it is finished processing or the HTTP call will fail.

Source

File: wp-includes/class-wp-http-encoding.php

View on Trac

Changelog

Version Description
3.6.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_http_accept_encoding