WooCommerce: How to Change the order status of a particular product on purchase

In woocommerce settings by default, there is an option directly change to set the settings of particular product status on successful payment. First, find the product id you need to change the status After getting the productId, copy the below code to the functions.php file and paste it, if you are feeling difficulty in finding functions.php and paste, you can use this plugin called: My custom functions and activate and then paste it inside the textbox, save and then turn it on. and then just replace the ‘your product id’…

Read More