plugins – WooCommerce download hook
I sell files through WooCommerce (virtual / downloadable product). These files are personalized depending to the buyer/order (just before download).
For this customization, I modified the “public static function download ($ file_path, $ product_id)” function of the “WC_Download_Handler” class in Woommerce.
Today I would prefer to use a Hook (via my theme’s “function.php” file) to do this customization.
Could someone tell me which action / filter I should use?