WooCommerce

Bulk update WooCommerce product price programmatically

With the following formula, you can set the price of all To bulk update WooCommerce product prices programmatically, first copy the following code into the "functions.php" file: Now you can decrease or increase the price of all products by giving the formula to the "$price" variable.