WordPress at Your Fingertips
function is not described

WC_Product::get_file_download_path() public WC 1.0

Get file download path identified by $download_id.

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

Return

String.

Usage

$WC_Product = new WC_Product();
$WC_Product->get_file_download_path( $download_id );
$download_id(string) (required)
file identifier.

Code of WC_Product::get_file_download_path() WC 5.5.2

<?php
public function get_file_download_path( $download_id ) {
	$files     = $this->get_downloads();
	$file_path = isset( $files[ $download_id ] ) ? $files[ $download_id ]->get_file() : '';

	// allow overriding based on the particular file being requested.
	return apply_filters( 'woocommerce_product_file_download_path', $file_path, $this, $download_id );
}