wppaste
WordPress

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

Since
3.6.0
Filters the allowed encoding types.

Compatibility

WordPress
since 3.6.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$typestring[]
Array of what encoding types to accept and their priority values.
$urlstring
URL of the HTTP request.
$argsarray
HTTP request arguments.

Where this hook fires · 1

  • wp-includes/class-wp-http-encoding.php:184WP_Http_Encoding::accept_encoding()

Source code

		 * @since 3.6.0		 *		 * @param string[] $type Array of what encoding types to accept and their priority values.		 * @param string   $url  URL of the HTTP request.		 * @param array    $args HTTP request arguments.		 */		$type = apply_filters( 'wp_http_accept_encoding', $type, $url, $args ); 		return implode( ', ', $type );	} 	/**	 * What encoding the content used when it was compressed to send in the headers.

Changelog

Introduced in 3.6.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.8.8 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.