I do not see order_id as a parameter
http://hookr.io/plugins/woocommerce/2.4.9/filters/woocommerce_product_file/
/ define the woocommerce_product_file callback
function filter_woocommerce_product_file( $file, $instance, $download_id ) {
// make filter magic happen here...
return $file;
};
// add the filter
add_filter( 'woocommerce_product_file', 'filter_woocommerce_product_file', 10, 3 );
Hi,
The W3 Total Cache caches the files, it needs to be cleared from time to time. try clearing it if you can login to wp-admin.
It is in top menu Performance=?Empty Caches.
Else you can also clear it from /root/tmp/pear/cache if you have root access or clear it from the place on server where cache is stored.
had a similar issue for my website and resolved it this way.
thanks
Anu