{"id":142119,"date":"2015-06-20T11:00:05","date_gmt":"2015-06-20T15:00:05","guid":{"rendered":"http:\/\/premium.wpmudev.org\/blog\/?p=142119"},"modified":"2015-06-19T08:21:29","modified_gmt":"2015-06-19T12:21:29","slug":"turn-off-notifications","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/turn-off-notifications\/","title":{"rendered":"How to Switch Off WordPress Email Updates and Eliminate Inbox Overload"},"content":{"rendered":"<p>Everyone from seasoned developers to complete newcomers will have encountered WordPress core update email notifications. But\u00a0if\u00a0you\u2019ve been living under a rock for the past couple of years,\u00a0core update email notifications\u00a0are sent out when\u00a0WordPress automatically upgrades to a minor new version.<\/p>\n<p>Automatic core updates (<a href=\"https:\/\/wordpress.org\/news\/2013\/10\/basie\/\" target=\"_blank\">introduced in WordPress 3.7<\/a>) are of course a huge positive, and while the notifications aren\u2019t a particularly big deal if you only run one or two WordPress sites, those of us who manage multiple websites can find their email inboxes awful crowded come update time.<\/p>\n<p>With the above in mind, in today&#8217;s Weekend WordPress Project we\u2019re going to look at three simple ways you can employ to stop those pesky notifications from clogging up your inbox.<\/p>\n<h2>1. The Easy (But Inelegant) Solution: Using Email Filters<\/h2>\n<p>Just about every email provider out there (online and offline) offers a means\u00a0to filter emails. While this doesn\u2019t prevent emails from being sent, you can make sure that they don&#8217;t appear in your inbox;\u00a0so, from your perspective, the emails never existed.<\/p>\n<p>We&#8217;d be here all day if I gave instructions for every email platform, but I&#8217;ll run through the process for Gmail and Google Apps users.<\/p>\n<p>Open Gmail and click the down arrow in your search box. A window that allows you to specify search criteria will appear:<\/p>\n<div  class=\"wpdui-pic-large   \" > <img loading=\"lazy\" decoding=\"async\" class=\"attachment-1364x1364\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2015\/06\/gmail-search-criteria.png\" alt=\"Gmail search criteria\" width=\"1364\" height=\"648\" \/> <\/div>\n<p>Enter your search criteria, which, in this case, is the subject of the WordPress update email: &#8220;Your site has updated to WordPress&#8221;.<\/p>\n<p>If you want to check that your search worked correctly, click the search button.<\/p>\n<div  class=\"wpdui-pic-large   \" > <img loading=\"lazy\" decoding=\"async\" class=\"attachment-1364x1364\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2015\/06\/gmail-subject-search-filter.png\" alt=\"Gmail subject search filter\" width=\"1364\" height=\"574\" \/> <\/div>\n<p>Click <strong>Create filter with this search<\/strong> at the bottom of the search window.<\/p>\n<p>Choose the action(s) you want the filter to take. Among other options, you\u00a0can automatically archive them, delete them outright, or filter them into a different folder:<\/p>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-735x735\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2015\/06\/gmail-filter.png\" alt=\"Gmail filtering options\" width=\"735\" height=\"558\" \/><figcaption class=\"wp-caption-text\">I&#8217;ve set the emails to be marked as read and archived.<\/figcaption><\/figure>\n<\/div>\n<p>Click the <strong>Create filter\u00a0<\/strong>button.<\/p>\n<p>Once set up, you should no longer receive the updates in your inbox. You can edit or delete filters from within the <i>Settings<\/i> panel of Gmail if you should ever need to.<\/p>\n<h2>2. The Easy (But Plugin-Reliant) Solution: Installing Easy Updates Manager<\/h2>\n<div  class=\"wpdui-pic-regular  \">\n<figure class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-735x735\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2015\/06\/easy-updates-manager-800x259.png\" alt=\"Easy Updates Manager\" width=\"735\" height=\"238\" \/><figcaption class=\"wp-caption-text\">The Easy Updates Manager plugin<\/figcaption><\/figure>\n<\/div>\n<p><a href=\"https:\/\/wordpress.org\/plugins\/stops-core-theme-and-plugin-updates\/\" target=\"_blank\">Easy Updates Manager<\/a> is a useful plugin that enables you to manage all aspects of WordPress updates. The below video gives a good overview of all the features, ranging from theme and plugin updates to selecting which users can access configuration options:<\/p>\n<div class=\"embed-vimeo\" style=\"text-align: center;\"><iframe loading=\"lazy\" src=\"https:\/\/player.vimeo.com\/video\/288535460\" width=\"600\" height=\"338\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen><\/iframe><\/div>\n<p>The function pertaining most to this post is the &#8220;Core Update Emails&#8221; feature, which enables you to turn off the email notifications for core updates.<\/p>\n<div  class=\"wpdui-pic-regular  \"> <img loading=\"lazy\" decoding=\"async\" class=\"attachment-735x735\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2015\/06\/set-core-update-notifications.png\" alt=\"Set core email update notifications\" width=\"728\" height=\"142\" \/> <\/div>\n<p>Just one click and you&#8217;re done!<\/p>\n<h2>3. The Better (But More Involved) Solution: Turning Off the Notifications at the Source<\/h2>\n<p>While this method may be the best solution for stopping those pesky notifications, it\u00a0should only be employed if you\u2019re comfortable diving into PHP code.<\/p>\n<p>To turn off email notifications at source,\u00a0access the <em>functions.php<\/em>\u00a0file for each of your sites\u00a0and add the following code:<\/p>\n<div class=\"gist\" data-gist=\"anonymous\/fd4ca5b0c2ceefb13f46\"><a class=\"loading\" href=\"https:\/\/gist.github.com\/anonymous\/fd4ca5b0c2ceefb13f46.js\" target=\"_blank\">Loading gist anonymous\/fd4ca5b0c2ceefb13f46<\/a><\/p>\n<div class=\"gist-consent-notice\" style=\"display:none\">\n<p>Please <a href=\"javascript:Cookiebot.renew()\">update your cookie preferences<\/a> to enable preference cookies to view this gist.<\/p>\n<\/div>\n<\/div>\n<p>It\u2019s as simple as that! If you\u2019re feeling more adventurous you can dig even deeper into the code and modify the filter according to an email <code>$type<\/code>, so updates are only sent in specific circumstances (e.g. when an update fails). If you want to explore these sorts of options further, we recommend you check out the <a href=\"https:\/\/codex.wordpress.org\/Configuring_Automatic_Background_Updates#Disable_Emails_via_Filter\" target=\"_blank\">WordPress Codex<\/a>.<\/p>\n<p>A more easily distributable solution for implementing the\u00a0above code would be to turn it into a\u00a0super lightweight\u00a0plugin\u00a0that could\u00a0be installed on\u00a0all of the sites that you manage. This negates the need to input the above filter into each <em>functions.php<\/em>\u00a0file on\u00a0every site. If you\u2019ve never created a plugin before, have a look at <a href=\"https:\/\/wpmudev.com\/blog\/wordpress-plugin-development-guide\/\" target=\"_blank\">this complete guide<\/a> to creating plugins by Daniel \u2013 it&#8217;s far easier than you think!<\/p>\n<h3>Wrapping Up<\/h3>\n<p>Whichever option you choose, the end result is the same: you\u00a0not receiving WordPress core email update notifications.<\/p>\n<p>Let\u2019s quickly recap them:<\/p>\n<ol>\n<li><strong>Email filters.<\/strong> Definitely the easiest option, for those who\u00a0would rather leave WordPress alone.<\/li>\n<li><strong>Easy Updates Manager.<\/strong>\u00a0The easiest WordPress-centric solution.\u00a0Just set it up, uncheck the relevant\u00a0box and you\u2019re done.<\/li>\n<li><strong>Custom code.<\/strong>\u00a0This requires some rudimentary\u00a0coding awareness and is the best option for WordPress developers who want a lightweight solution.<\/li>\n<\/ol>\n<p><strong>Which method do you prefer when handling numerous sites? Let us know in the comments below.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Everyone from seasoned developers to complete newcomers will have encountered WordPress core update emails. While the notifications aren\u2019t a big deal if you only run one or two WordPress sites, if you manage multiple websites your inbox will get awfully crowded come update time. Here&#8217;s how to turn the notifications off.<\/p>\n","protected":false},"author":37930,"featured_media":137544,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[557,4],"tags":[10153,9801],"tutorials_categories":[],"class_list":["post-142119","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development","category-plugins","tag-easy-updates-manager","tag-notifications"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/142119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/37930"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=142119"}],"version-history":[{"count":12,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/142119\/revisions"}],"predecessor-version":[{"id":190882,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/142119\/revisions\/190882"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/137544"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=142119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=142119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=142119"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=142119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}