wp_http_accept_encoding filter-hook . WP 3.6.0
Filters the allowed encoding types.
Usage
add_filter( 'wp_http_accept_encoding', 'filter_function_name_7356', 10, 3 ); function filter_function_name_7356( $type, $url, $args ){ // filter... return $type; }
- $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.
Changelog
Since 3.6.0 | Introduced. |
Where the hook is called
wp_http_accept_encoding
wp-includes/class-wp-http-encoding.php 183
$type = apply_filters( 'wp_http_accept_encoding', $type, $url, $args );