woocommerce_product_file_download_path
Usage
add_filter( 'woocommerce_product_file_download_path', 'wp_kama_woocommerce_product_file_download_path_filter', 10, 3 );
/**
* Function for `woocommerce_product_file_download_path` filter-hook.
*
* @param $file_path
* @param $that
* @param $download_id
*
* @return
*/
function wp_kama_woocommerce_product_file_download_path_filter( $file_path, $that, $download_id ){
// filter...
return $file_path;
}
- $file_path
- -
- $that
- -
- $download_id
- -
Where the hook is called
woocommerce_product_file_download_path
woocommerce/includes/abstracts/abstract-wc-product.php 2310
return apply_filters( 'woocommerce_product_file_download_path', $file_path, $this, $download_id );