├── LICENSE ├── README.md ├── control-wp-core-emails.php ├── lib ├── global.php └── settings.php ├── readme.txt └── screenshot-1.png /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Andrew Norcross 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Control WP Core Emails 2 | ====================== 3 | 4 | **Contributors:** norcross 5 | 6 | **Donate link:** http://andrewnorcross.com/donate 7 | 8 | **Tags:** email, core 9 | 10 | **Requires at least:** 4.0 11 | 12 | **Tested up to:** 4.6 13 | 14 | **Stable tag:** 0.0.1 15 | 16 | 17 | ### Description ### 18 | 19 | Control the emails sent by the WordPress auto-update process. Disable which update result(s) are excluded from email sending. 20 | 21 | 22 | ### Installation ### 23 | 24 | This section describes how to install the plugin and get it working. 25 | 26 | 1. Upload `control-wp-core-emails` to the `/wp-content/plugins/` directory. 27 | 1. Activate the plugin through the 'Plugins' menu in WordPress. 28 | 1. Go to the General Settings section and choose the emails to suppress. 29 | 30 | ### Frequently Asked Questions ### 31 | 32 | #### Why do I need this? #### 33 | 34 | Maybe you don't. But this is for people who don't want emails sent on site updates. It can get sort of unruly when you have a lot of sites. And because emails are annoying. 35 | 36 | #### I would like to edit what the update email contains. Can I do that? #### 37 | 38 | Probably, but not with this plugin. This is *only* intended to suppress the emails sent, not modify them in any way. 39 | 40 | #### I have a question / bug report / feature request #### 41 | 42 | Best place for them is on [Github](https://github.com/norcross/control-wp-core-emails/). 43 | 44 | 45 | ### Screenshots ### 46 | 47 | ![Settings Page](https://raw.githubusercontent.com/norcross/control-wp-core-emails/master/screenshot-1.png?raw=true "Settings Page") 48 | 49 | 50 | ### Changelog ### 51 | 52 | **0.0.1** 53 | * Initial release 54 | 55 | 56 | ### Upgrade Notice ### 57 | 58 | **0.0.1** 59 | Initial release 60 | -------------------------------------------------------------------------------- /control-wp-core-emails.php: -------------------------------------------------------------------------------- 1 | init(); 77 | -------------------------------------------------------------------------------- /lib/global.php: -------------------------------------------------------------------------------- 1 | init(); 73 | -------------------------------------------------------------------------------- /lib/settings.php: -------------------------------------------------------------------------------- 1 | '; 57 | 58 | // Now set up the table with each value. 59 | echo ''; 60 | echo ''; 61 | 62 | echo ''; 63 | 64 | // The field label. 65 | echo ''; 68 | 69 | // The input field. 70 | echo ''; 100 | 101 | echo ''; 102 | 103 | // Close the table. 104 | echo ''; 105 | echo '
'; 66 | echo ''; 67 | echo ''; 71 | 72 | echo ''; 75 | 76 | echo '
'; 77 | 78 | echo ''; 81 | 82 | echo '
'; 83 | 84 | echo ''; 87 | 88 | echo '
'; 89 | 90 | echo ''; 93 | 94 | echo '
'; 95 | 96 | // Add our intro content. 97 | echo '

' . esc_html__( 'Select the notification emails you want to suppress.', 'control-wp-core-emails' ) . '

'; 98 | 99 | echo '
'; 106 | } 107 | 108 | /** 109 | * Sanitize the user data inputs. 110 | * 111 | * @param array $input The data entered in a settings field. 112 | * 113 | * @return array $input The sanitized data. 114 | */ 115 | public function data_sanitize( $input ) { 116 | 117 | // Make sure we have an array. 118 | $input = (array) $input; 119 | 120 | // Set an empty array. 121 | $data = array(); 122 | 123 | // Loop and sanitize each item. 124 | foreach ( $input as $single ) { 125 | $data[] = sanitize_key( $single ); 126 | } 127 | 128 | // And send it back. 129 | return $data; 130 | } 131 | 132 | // End class. 133 | } 134 | 135 | // Instantiate our class. 136 | $ControlCoreEmails_Settings = new ControlCoreEmails_Settings(); 137 | $ControlCoreEmails_Settings->init(); 138 | -------------------------------------------------------------------------------- /readme.txt: -------------------------------------------------------------------------------- 1 | === Control WP Core Emails === 2 | Contributors: norcross 3 | Website Link: http://andrewnorcross.com/plugins/ 4 | Donate link: https://andrewnorcross.com/donate 5 | Tags: emails, core updates 6 | Requires at least: 4.0 7 | Tested up to: 4.6 8 | Stable tag: 0.0.1 9 | License: MIT 10 | License URI: http://norcross.mit-license.org/ 11 | 12 | Control the emails sent by the WordPress auto-update process. 13 | 14 | == Description == 15 | 16 | Control the emails sent by the WordPress auto-update process. Disable which update result(s) are excluded from email sending. 17 | 18 | == Installation == 19 | 20 | This section describes how to install the plugin and get it working. 21 | 22 | 1. Upload `control-wp-core-emails` to the `/wp-content/plugins/` directory. 23 | 1. Activate the plugin through the 'Plugins' menu in WordPress. 24 | 1. Go to the General Settings section and choose the emails to suppress. 25 | 26 | == Frequently Asked Questions == 27 | 28 | = Why do I need this? = 29 | 30 | Maybe you don't. But this is for people who don't want emails sent on site updates. It can get sort of unruly when you have a lot of sites. And because emails are annoying. 31 | 32 | = I would like to edit what the update email contains. Can I do that? = 33 | 34 | Probably, but not with this plugin. This is *only* intended to suppress the emails sent, not modify them in any way. 35 | 36 | = I have a question / bug report / feature request = 37 | 38 | Best place for them is on [Github](https://github.com/norcross/control-wp-core-emails). 39 | 40 | == Screenshots == 41 | 42 | 1. Screenshot 43 | 44 | 45 | == Changelog == 46 | 47 | = 0.0.1 - 2016/09/14 = 48 | * First release! 49 | 50 | 51 | == Upgrade Notice == 52 | 53 | = 0.0.1 = 54 | * First release! 55 | -------------------------------------------------------------------------------- /screenshot-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/norcross/control-wp-core-emails/59167f452f1f44a4c643c49f6b194c8e41465b7a/screenshot-1.png --------------------------------------------------------------------------------