Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@weszty
Forked from burstofcode/wp-config.php
Created March 30, 2021 08:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weszty/0576fe1e22a8f85a166e822e8019e151 to your computer and use it in GitHub Desktop.
Save weszty/0576fe1e22a8f85a166e822e8019e151 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