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: ''


Top ↑

Source Source

File: includes/class-wc-download-handler.php

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.