woocommerce_product_file_download_path

woocommerce_product_file_download_path

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_product_file_download_path') is found 1 times:

  • /includes/abstracts/abstract-wc-product.php line 2192
    2188
    2189
    2190
    2191
    2192
    2193
    2194
    2195
    2196
    2197
    2198
        $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 );
    }
     
    /**
     * Get the suffix to display after prices > 0.
     *
     * @param  string  $price to calculate, left blank to just use get_price().