On this page
apply_filters( 'wp_http_accept_encoding', string[] $type, string $url, array $args )
Filters the allowed encoding types.
Parameters
$typestring[]-
Array of what encoding types to accept and their priority values.
$urlstring-
URL of the HTTP request.
$argsarray-
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 all references
$type = apply_filters( 'wp_http_accept_encoding', $type, $url, $args );
Related
Used By
| Used By | Description |
|---|---|
| WP_Http_Encoding::accept_encoding() wp-includes/class-wp-http-encoding.php | What encoding types to accept and their priority values. |
Changelog
| Version | Description |
|---|---|
| 3.6.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_http_accept_encoding