WC_Product::get_file_download_path( string $download_id )

Get file download path identified by $download_id.


Description Description


Parameters Parameters

$download_id

(Required) file identifier.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/abstracts/abstract-wc-product.php

1985
1986
1987
1988
1989
1990
1991
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 );
}


Top ↑

User Contributed Notes User Contributed Notes

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