Skip to content

Instantly share code, notes, and snippets.

@burstofcode
Created December 2, 2017 20:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save burstofcode/49d227763888a76926b16ce40d1e0f4a to your computer and use it in GitHub Desktop.
Save burstofcode/49d227763888a76926b16ce40d1e0f4a to your computer and use it in GitHub Desktop.
There are two things to understand when uninstalling or removing WooCommerce. * If you deactivate and delete the plugin from WordPress, you only remove the plugin and its files. Your settings, orders, products, pages, etc… will still exist in the database. * If you need to remove ALL WooCommerce data, including products, order data, etc., you ne…
<?php
/** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Open your site’s wp-config file and add
* define( 'WC_REMOVE_ALL_DATA', true);
* on its own line above the
* That’s all, stop editing! Happy blogging. line.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
define( 'WC_REMOVE_ALL_DATA', true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment