WordPress at Your Fingertips
function is not described

WC_Download_Handler::download_file_redirect() public WC 1.0

Redirect to a file to start the download.

{} It's a method of the class: WC_Download_Handler{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Download_Handler::download_file_redirect( $file_path, $filename );
$file_path(string) (required)
File path.
$filename(string)
File name.
Default: ''

Code of WC_Download_Handler::download_file_redirect() WC 5.6.0

public static function download_file_redirect( $file_path, $filename = '' ) {
	header( 'Location: ' . $file_path );
	exit;
}