如何在WordPress中禁用自动更新电子邮件通知

Do you want to disable automatic update email notification in WordPress? By default, WordPress sends an email notification to inform you that your WordPress site is updated after security updates. Recently one of our readers asked if there is an easy way to disable that. In this article, we will show you how to easily disable automatic update email notification in WordPress.

您是否要在WordPress中禁用自动更新电子邮件通知? 默认情况下,WordPress发送电子邮件通知以通知您WordPress网站在安全更新后已更新。 最近,我们的一位读者问是否有一种简便的方法可以禁用它。 在本文中,我们将向您展示如何轻松地在WordPress中禁用自动更新电子邮件通知。

How to Disable Automatic Update Email Notification in WordPress
关于WordPress中的自动更新 (About Automatic Updates in WordPress)

WordPress is an open source software which is maintained by a community of developers. It is regularly updated to fix security issues, bugs, and to add new features.

WordPress是由开发人员社区维护的开源软件。 它会定期更新以修复安全问题,错误并添加新功能。

WordPress updates

This is why you should always use the latest version of WordPress to make sure that your website is safe and up to date.

这就是为什么您应该始终使用最新版本的WordPress来确保您的网站安全且最新的原因。

WordPress automatically installs minor updates as soon as they are available. After the update, your WordPress site sends a notification to the WordPress admin email address.

WordPress会在可用时立即自动安装次要更新。 更新后,您的WordPress站点会将通知发送到WordPress管理员电子邮件地址。

The purpose of this email notification is just to inform you that your WordPress site is updated.

此电子邮件通知的目的仅是通知您WordPress网站已更新。

If you maintain multiple WordPress sites, then you will get an email from each website. This can be a bit annoying.

如果您维护多个WordPress网站,那么您将从每个网站收到一封电子邮件。 这可能有点烦人。

Let’s see how to easily turn off the automatic update email notification in WordPress.

让我们看看如何在WordPress中轻松关闭自动更新电子邮件通知。

方法1:禁用使用插件的自动更新电子邮件通知 (Method 1: Disable Automatic Update Email Notification Using Plugin)

This method is simpler and does not require you to add any code to your WordPress site.

这种方法比较简单,不需要您向WordPress网站添加任何代码。

First thing you need to do is install and activate the Disable WordPress Core Update Email. For more details, see our step by step guide on how to install a WordPress plugin.

您需要做的第一件事是安装并激活“ 禁用WordPress核心更新电子邮件” 。 有关更多详细信息,请参阅有关如何安装WordPress插件的分步指南。

The plugin works out of the box, and there are no settings for you to configure.

该插件可以直接使用,没有可供您配置的设置。

Upon activation, it simply disables email notification sent after WordPress automatic update.

激活后,它仅禁用WordPress自动更新后发送的电子邮件通知。

方法2:禁用使用代码的自动更新电子邮件通知 (Method 2: Disable Automatic Update Email Notification Using Code)

This method requires you to add code to your WordPress files. If you haven’t done this before, then take a look at our beginner’s guide on pasting snippets from web into WordPress.

此方法要求您将代码添加到WordPress文件中。 如果您以前没有做过,请查看我们的初学者指南,该指南将Web片段粘贴到WordPress中

You will need to add this code to your theme’s functions.php file or a site-specific plugin.

您将需要将此代码添加到主题的functions.php文件或特定站点的插件中


add_filter( 'auto_core_update_send_email', 'wpb_stop_auto_update_emails', 10, 4 );
 
function wpb_stop_update_emails( $send, $type, $core_update, $result ) {
if ( ! empty( $type ) && $type == 'success' ) {
return false;
}
return true;
}

This code simply adds a filter to disable email notification after automatic core update.

这段代码只是添加了一个过滤器,以在自动更新内核后禁用电子邮件通知。

在WordPress中管理通知和更新 (Managing Notifications and Updates in WordPress)

By default, WordPress does not allow you to automatically install updates. Many site owners find it a bit annoying to update themes and plugins, especially if they maintain multiple WordPress sites.

默认情况下,WordPress不允许您自动安装更新。 许多网站所有者发现更新主题和插件有点烦人,尤其是当他们维护多个WordPress网站时。

Managing WordPress updates

Luckily, there are plugins that allow you to more efficiently manage WordPress updates. For detailed instructions see our guide on how to better manage automatic WordPress updates.

幸运的是,有一些插件可以让您更有效地管理WordPress更新。 有关详细说明,请参阅有关如何更好地管理WordPress自动更新的指南

Similarly, WordPress by default has no unified interface to manage notification emails. It may not even send email notifications and you wouldn’t notice it.

同样,默认情况下,WordPress没有统一的界面来管理通知电子邮件。 它甚至可能不会发送电子邮件通知 ,您也不会注意到它。

There are plugins that allow you to manage and control emails sent by WordPress. You can even customize default WordPress emails. For detailed instructions take a look at our guide on how to add better custom notifications in WordPress.

有一些插件可以让您管理和控制WordPress发送的电子邮件。 您甚至可以自定义默认的WordPress电子邮件。 有关详细说明,请参阅有关如何在WordPress中添加更好的自定义通知的指南。

That’s all, we hope this article helped you learn how to disable automatic update email notification in WordPress. You may also want to see our guide on 24 must have WordPress plugins for business websites.

仅此而已,我们希望本文能帮助您学习如何在WordPress中禁用自动更新电子邮件通知。 您可能还想查看我们的24指南,该指南必须具有用于商务网站的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/wp-tutorials/how-to-disable-automatic-update-email-notification-in-wordpress/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值