The Discontinued Product Stock Status for WooCommerce plugin includes a Revert Setting that automatically changes the stock status of discontinued products when the plugin is uninstalled or deactivated. This ensures that no products remain stuck in the discontinued state once the plugin is removed from the site.
You can access this setting by navigating to:
WooCommerce → Settings → Discontinued Product Stock Status → Revert Tab
How the Revert Setting Works
Within the Revert tab, you’ll find a checkbox option that enables automatic stock status modification for all products marked as discontinued.
When this setting is enabled and saved, the plugin will automatically change the stock status of all discontinued products to “Out of stock” as soon as the plugin is deactivated or deleted from your site.
This feature helps maintain consistency in your WooCommerce store by ensuring that discontinued products do not remain in an undefined or inactive state after the plugin is removed.
Example Scenario
Consider an example product such as “925 Gold | Dangling Drop Hoops”, which has been marked as discontinued in your store.
When the plugin is active, the stock status of this product is shown as “Discontinued.”
If you now uninstall or deactivate the plugin, the system will automatically update the product’s stock status to “Out of stock.”
This ensures the product still appears correctly in WooCommerce with a valid status even after the plugin is removed.
Important Note
Reinstalling or reactivating the plugin does not revert products that were changed to “Out of stock” back to the “Discontinued” status.
This means that once the plugin is removed, all affected products will remain “Out of stock” until manually updated or discontinued again after reinstalling the plugin.
For additional customization and more advanced controls, you can continue exploring the Discontinued Products Stock Status Pro for WooCommerce Options menu to access the complete range of settings.