WpOrg\Requests\Transport
Fsockopen::accept_encoding
Retrieve the encodings we can accept
Метод класса: Fsockopen{}
Хуков нет.
Возвращает
Строку. Accept-Encoding header value
Использование
$result = Fsockopen::accept_encoding();
Код Fsockopen::accept_encoding() Fsockopen::accept encoding WP 6.9.1
private static function accept_encoding() {
$type = [];
if (function_exists('gzinflate')) {
$type[] = 'deflate;q=1.0';
}
if (function_exists('gzuncompress')) {
$type[] = 'compress;q=0.5';
}
$type[] = 'gzip;q=0.5';
return implode(', ', $type);
}