public static function download_file_force($file_path, $filename)
{
$parsed_file_path = self::parse_file_path($file_path);
self::download_headers($parsed_file_path['file_path'], $filename);
if (!self::readfile_chunked($parsed_file_path['file_path'])) {
if ($parsed_file_path['remote_file']) {
self::download_file_redirect($file_path);
} else {
self::download_error(__('File not found', 'woocommerce'));
}
}
exit;
}