woocommerce_product_file filter-hookWC 1.0

Usage

add_filter( 'woocommerce_product_file', 'wp_kama_woocommerce_product_file_filter', 10, 3 );

/**
 * Function for `woocommerce_product_file` filter-hook.
 * 
 * @param  $file        
 * @param  $that        
 * @param  $download_id 
 *
 * @return 
 */
function wp_kama_woocommerce_product_file_filter( $file, $that, $download_id ){

	// filter...
	return $file;
}
$file
-
$that
-
$download_id
-

Where the hook is called

WC_Product::get_file()
woocommerce_product_file
woocommerce/includes/abstracts/abstract-wc-product.php 2074
return apply_filters( 'woocommerce_product_file', $file, $this, $download_id );

Where the hook is used in WooCommerce

Usage not found.