WordPress at a glance
filter is not described

woocommerce_download_product_filepath filter-hook . WC 4.0.0

Filter download filepath.

Usage

add_filter( 'woocommerce_download_product_filepath', 'filter_function_name_6624', 10, 5 );
function filter_function_name_6624( $file_path, $email_address, $order, $product, $download ){
	// filter...

	return $file_path;
}
$file_path(string)
File path.
$email_address(string)
Email address.
$order(WC_Order|true|false)
Order object or false.
$product(WC_Product)
Product object.
$download(WC_Customer_Download)
Download data.

Changelog

Since 4.0.0 Introduced.

Where the hook is called

WC_Download_Handler::download_product()
woocommerce_download_product_filepath
woocommerce/includes/class-wc-download-handler.php 93-100
$file_path = apply_filters(
	'woocommerce_download_product_filepath',
	$product->get_file_download_path( $download->get_download_id() ),
	$email_address,
	$order,
	$product,
	$download
);

Where in WP core the hook is used WooCommerce

Usage not found.