I would like to Set product sale price programmatically in WooCommerce 3 but only for specific products Ids.
Is it possible and how can I target only specific products using this thread code?
I haven't be able to make it work for specific products only.
Any help is appreciated.
To Set only specific product sale price (the products IDs are defined in the 1st function), try this:
Code goes in function.php file of your active child theme (active theme).