WC_Download_Handler::remove_download_headers
Remove headers that describe a streamed download before sending another response type.
Метод класса: WC_Download_Handler{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = WC_Download_Handler::remove_download_headers(): void;
Код WC_Download_Handler::remove_download_headers() WC Download Handler::remove download headers WC 11.3.0
private static function remove_download_headers(): void {
foreach ( array( 'Content-Type', 'Content-Description', 'Content-Disposition', 'Content-Transfer-Encoding', 'Content-Length', 'Content-Range', 'Accept-Ranges' ) as $header ) {
header_remove( $header );
}
}