卸载wordpress_如何正确卸载WordPress插件

卸载wordpress

Once you install WordPress, usually one of the first thing you do is install plugins. As your site and skills grow, you quickly realize that certain plugins weren’t the best fit for you. Well, it’s important that you deactivate and delete those plugins. In this article, we will show you how to properly uninstall a WordPress plugin and explain why it’s important.

安装WordPress之后 ,通常要做的第一件事就是安装插件。 随着站点和技能的增长,您很快就会意识到某些插件并不是最适合您的插件。 好吧,停用并删除这些插件很重要。 在本文中,我们将向您展示如何正确卸载WordPress插件并说明其重要性。

Uninstall WordPress plugin
为什么需要卸载WordPress插件? (Why You Need to Uninstall a WordPress Plugin?)

There are thousands of WordPress plugins available, and you can easily install any WordPress plugin on your site. However, it is also important that you uninstall any WordPress plugins that you don’t want to use.

有成千上万的WordPress插件,您可以轻松地在您的网站上安装任何WordPress插件 。 但是,卸载所有不想使用的WordPress插件也很重要。

WordPress plugins are like apps that you can run on your site. This gives them enormous control of your site. While plugin authors do their best to keep the plugins secure and safe, history shows us that mistakes do happen from time to time.

WordPress插件就像可以在您的网站上运行的应用程序。 这使他们可以极大地控制您的站点。 插件作者尽最大努力确保插件的安全性和安全性,历史记录表明,错误确实时有发生。

This means that any plugin that you are not using on your site can be a potential liability.

任何插件,你不使用你的网站,这意味着可能是潜在的法律责任。

Keeping unnecessary files on your site also increases your WordPress backup size. This means that it will take more time for you to download or restore backup.

将不必要的文件保留在您的站点上还会增加WordPress备份大小。 这意味着您将花费更多时间来下载或还原备份。

Yes, you can definitely install as many WordPress plugins as you need. However if you are not using a plugin, then we believe that you should uninstall it properly.

是的,您绝对可以根据需要安装尽可能多的WordPress插件 。 但是,如果您没有使用插件,那么我们认为您应该正确卸载它。

停用和卸载WordPress插件之间的区别 (Difference Between Deactivating and Uninstalling a WordPress Plugin)

Many users fall into the habit of simply going to a plugins page and deactivating plugins that they don’t want to use.

许多用户习惯于简单地转到插件页面并停用他们不想使用的插件。

Deactivating a plugin without permanently deleting it is very handy for debugging and bug fixes because it keeps your settings and configuration in place should you reactivate. However often users end up finding a different solution and never using this plugin again.

在不永久删除插件的情况下停用插件非常方便进行调试和错误修复,因为当您重新激活插件时,它可使设置和配置保持原位。 但是,通常用户最终会找到其他解决方案,而不再使用该插件。

Inactive Plugins

A deactivated WordPress plugin can still make your site vulnerable because it can still be used to run malicious code on your site. Most folks do not take proper security measures such as adding a firewall like Sucuri, disabling PHP execution, etc.

停用的WordPress插件仍然可以使您的网站容易受到攻击,因为它仍然可以用于在您的网站上运行恶意代码。 大多数人没有采取适当的安全措施,例如添加Sucuri之类的防火墙, 禁用PHP执行等。

While you do get update notifications for deactivated plugins that are hosted in the WordPress repository, you do not get them for premium plugins.

虽然您确实收到了WordPress存储库中托管的已停用插件的更新通知,但您并未获得高级插件的通知。

That’s why we always recommend that you should only deactivate plugin when you just want to temporarily disable them. If you do not intend to activate it any time soon, then it is better to uninstall the plugin.

这就是为什么我们始终建议您仅在只想暂时禁用插件时才停用它。 如果您不打算很快激活它,那么最好卸载该插件。

By properly uninstalling the plugin, you also keep your database clean from “junk data” that plugins often leave behind.

通过正确卸载插件,还可以使数据库免受插件经常留下的“垃圾数据”的影响。

Remember you can always download and reinstall the plugin.

请记住,您始终可以下载并重新安装插件。

如何卸载WordPress插件 (How to Uninstall a WordPress Plugin)

WordPress makes it super easy to uninstall plugins from the admin area. Simply login to your WordPress dashboard and go to the Plugins page.

WordPress使从管理区域卸载插件变得非常容易。 只需登录到WordPress仪表板,然后转到“插件”页面。

You will see the list of currently installed plugins on your site. Active plugins are highlighted with blue background color and have a link below to deactivate them.

您将在您的站点上看到当前安装的插件列表。 活动的插件以蓝色背景色突出显示,并在下面提供一个链接以将其停用。

Installed plugins on a WordPress site

Inactive plugins have links below to activate, edit, or delete them. Click on delete link below the plugin that you want to uninstall.

不活动的插件在下面具有链接,可以激活,编辑或删除它们。 单击要卸载的插件下方的删除链接。

WordPress will now ask you to confirm that you want to delete the plugin.

WordPress现在将要求您确认要删除该插件。

Deleting a WordPress plugin to unintsall it

You need to click on ‘Yes, delete these files’ button. WordPress will now safely remove plugin from your web server.

您需要单击“是,删除这些文件”按钮。 WordPress现在将安全地从您的Web服务器中删除插件。

That’s all you have successfully uninstalled a plugin from your WordPress site.

这就是您成功从WordPress网站上卸载插件的全部内容。

There are some more steps that you can take to remove all traces of the plugin. However, these steps are optional and not recommended for absolute beginners.

您可以采取更多其他步骤来删除插件的所有痕迹。 但是,这些步骤是可选的,不建议绝对的初学者使用。

删除WordPress插件添加的额外文件 (Removing Extra Files Added by a WordPress Plugin)

In most cases, simply deleting a WordPress plugin will uninstall it completely. However, there are some plugins that store files outside of the plugins folder. Those files will not be deleted when you uninstall the plugin.

在大多数情况下,只需删除WordPress插件即可将其完全卸载。 但是,有些插件将文件存储在plugins文件夹之外。 卸载插件时,这些文件不会被删除。

You can check and delete files stored by the plugin using a FTP client. Connect to your website using FTP, and then go to /wp-content/ folder.

您可以使用FTP客户端检查和删除插件存储的文件。 使用FTP连接到您的网站,然后转到/ wp-content /文件夹。

Delete extra plugin files using FTP

Many WordPress backup plugins, gallery plugins, and sliders create and store data directly in the wp-content folder. If you do not have a complete backup of your WordPress site, then you should download these files to your computer as backup.

许多WordPress备份插件图库插件滑块直接在wp-content文件夹中创建和存储数据。 如果您没有WordPress站点的完整备份,则应将这些文件作为备份下载到计算机上。

After that you can safely delete these files from your server.

之后,您可以安全地从服务器中删除这些文件。

在WordPress中删除未使用的简码 (Removing Unused Shortcodes in WordPress)

Many WordPress plugins use shortcodes to add things into your posts or pages. Once you deactivate or uninstall a plugin, those shortcodes will become visible in your posts, and they look quite ugly.

许多WordPress插件使用短代码将内容添加到您的帖子或页面中。 停用或卸载插件后,这些短代码将在您的帖子中显示出来,而且看起来非常难看。

[pluginshortcode]

[pluginshortcode]

You can easily disable shortcodes by adding this code in your theme’s functions.php file or a site-specific WordPress plugin.

您可以通过在主题的functions.php文件或特定站点的WordPress插件中添加此代码来轻松禁用短代码。

add_shortcode( 'pluginshortcode', '__return_false' );

This code basically adds the shortcode back and make it display nothing. Don’t forget to replace pluginshortcode with the shortcode tag used by the plugin you want to remove.

该代码基本上将短代码添加回去,并使它不显示任何内容。 不要忘记用要删除的插件使用的pluginshortcode标记替换pluginshortcode

It is important to note, that you will need remove this code if you ever decide to use that plugin again.

请务必注意,如果您决定再次使用该插件,则需要删除此代码。

For more detailed instructions, see our guide on how to find and remove usused shortcodes from WordPress posts.

有关更多详细说明,请参阅有关如何从WordPress帖子中查找和删除常用的短代码的指南。

清理WordPress数据库 (Cleaning Up WordPress Database)

Some WordPress plugins create their own tables in WordPress database. If these tables have too much data in them, then that would increase your WordPress backup size.

一些WordPress插件会在WordPress数据库中创建自己的表格。 如果这些表中有太多数据,则将增加WordPress备份大小。

You can delete those tables using phpMyadmin. However, we must warn you that you should be very careful about making any changes to the WordPress database. Like always, it is highly recommend that you have complete WordPress backup before you perform any action.

您可以使用phpMyadmin删除这些表。 但是,我们必须警告您,在对WordPress数据库进行任何更改时应该非常小心。 像往常一样,强烈建议您在执行任何操作之前先完成WordPress备份。

All of our recommended WordPress hosting providers offer cPanel with phpMyAdmin. Login to your cPanel account and scroll down to the database section. There you will find the phpMyAdmin icon.

我们所有推荐的WordPress托管提供商都提供带有phpMyAdmin的cPanel。 登录到您的cPanel帐户,然后向下滚动到“数据库”部分。 在那里,您将找到phpMyAdmin图标。

phpMyAdmin cPanel

Clicking on it will launch phpMyAdmin. You need to click on your database and then select the tables you want to delete. Below the tables list, you will see a drop down labeled ‘with selected’. You need to click on the drop down, and then select ‘Drop’.

单击它将启动phpMyAdmin。 您需要单击数据库,然后选择要删除的表。 在表格列表下方,您会看到一个标记为“ with selected”的下拉列表。 您需要单击下拉菜单,然后选择“拖放”。

Deleting unwanted database tables using phpMyAdmin

You will now see a warning that you are about to delete these tables. You need to click on Yes to confirm the action. Please note that it is irreversible, once deleted you will not be able to restore these tables unless you have a backup.

现在,您将看到一条警告,即将删除这些表。 您需要单击“是”以确认操作。 请注意,这是不可逆的,一旦删除,除非有备份,否则将无法还原这些表。

Confirm you want to delete tables

phpMyAdmin will now drop the tables and will delete all data in those tables.

phpMyAdmin现在将删除表并删除这些表中的所有数据。

For more details, you may want to check out our beginner’s guide to WordPress database management with phpMyAdmin.

有关更多详细信息,您可能需要查看我们的phpMyAdmin WordPress数据库管理初学者指南。

We hope this article helped you learn how to properly uninstall a WordPress plugin. You may also want to see our guide on how to deactivate all WordPress plugins when not able to access wp-admin.

我们希望本文能帮助您学习如何正确卸载WordPress插件。 您可能还想查看我们的指南,以在无法访问wp-admin时如何停用所有WordPress插件

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在TwitterFacebook上找到我们。

翻译自: https://www.wpbeginner.com/beginners-guide/how-to-properly-uninstall-a-wordpress-plugin/

卸载wordpress

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值