woocommerce_product_file_download_path хук-фильтрWC 1.0

allow overriding based on the particular file being requested.

Использование

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
-

Где вызывается хук

WC_Product::get_file_download_path()
woocommerce_product_file_download_path
woocommerce/includes/abstracts/abstract-wc-product.php 2059
return apply_filters( 'woocommerce_product_file_download_path', $file_path, $this, $download_id );

Где используется хук в WooCommerce

Использование не найдено.