WC_Download_Handler::download_file_redirect( string $file_path, string $filename = '' )
Redirect to a file to start the download.
Description Description
Parameters Parameters
- $file_path
-
(Required) File path.
- $filename
-
(Optional) File name.
Default value: ''
Source Source
File: includes/class-wc-download-handler.php
public static function download_file_redirect( $file_path, $filename = '' ) { header( 'Location: ' . $file_path ); exit; }