plugins – WooCommerce download hook

Question

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?

Thank you

0
Cnous 2 years 2021-03-23T11:33:45-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse