【原创】如何完全删除WooCommerce插件?

最近想重新弄一下WooCommerce这个神一样的电子商务插件,无奈重新安装上插件之后仍然是以前遗留下来的设置,于是乎,就找到了下面的官方解答:

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 need to be able to modify the site’s wp-config.php file to set a constant as true.

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. Then when you deactivate and delete WooCommerce it will remove all of its data.

简单来说就是:通过FileZilla或者Xshell进入后台找到wp-config.php,然后找到

/ That’s all, stop editing! Happy blogging. /

或者

/ 好了!请不要再继续编辑。请保存本文件。使用愉快! */

在其上面加入

define( ‘WC_REMOVE_ALL_DATA’, true);

保存,然后上传覆盖就好!这样进入插件进行下载WooCommere的时候就可以完全卸载掉了。

– End –

未经允许不得转载:金贸通-外贸综合服务平台 » 【原创】如何完全删除WooCommerce插件?

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

金贸通-外贸综合服务平台

外贸导航外贸书单