| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: Manage Notification E-mails |
| 4 |
Plugin URI: https://www.freeamigos.nl/wp-plugins/manage-notification-emails/1.8.6 |
| 5 |
Description: This plugin gives you the option to disable some of the notification e-mails send by WordPress. It's a simple plugin but effective. |
| 6 |
Version: 1.8.6 |
| 7 |
Author: Virgial Berveling |
| 8 |
Author URI: https://www.freeamigos.nl |
| 9 |
Text Domain: manage-notification-emails |
| 10 |
Domain Path: /languages/ |
| 11 |
License: GPLv2 |
| 12 |
*/ |
| 13 |
|
| 14 |
/* |
| 15 |
Copyright (c) 2006-2015 Virgial Berveling |
| 16 |
|
| 17 |
This program is free software; you can redistribute it and/or modify |
| 18 |
it under the terms of the GNU General Public License, version 2, as |
| 19 |
published by the Free Software Foundation. |
| 20 |
|
| 21 |
This program is distributed in the hope that it will be useful, |
| 22 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 23 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 24 |
GNU General Public License for more details. |
| 25 |
|
| 26 |
You should have received a copy of the GNU General Public License |
| 27 |
along with this program; if not, write to the Free Software |
| 28 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 29 |
|
| 30 |
You may also view the license here: |
| 31 |
http://www.gnu.org/licenses/gpl.html |
| 32 |
*/ |
| 33 |
|
| 34 |
|
| 35 |
/* |
| 36 |
A NOTE ABOUT LICENSE: |
| 37 |
|
| 38 |
While this plugin is freely available and open-source under the GPL2 |
| 39 |
license, that does not mean it is "public domain." You are free to modify |
| 40 |
and redistribute as long as you comply with the license. Any derivative |
| 41 |
work MUST be GPL licensed and available as open source. You also MUST give |
| 42 |
proper attribution to the original author, copyright holder, and trademark |
| 43 |
owner. This means you cannot change two lines of code and claim copyright |
| 44 |
of the entire work as your own. The GPL2 license requires that if you |
| 45 |
modify this code, you must clearly indicate what section(s) you have |
| 46 |
modified and you may only claim copyright of your modifications and not |
| 47 |
the body of work. If you are unsure or have questions about how a |
| 48 |
derivative work you are developing complies with the license, copyright, |
| 49 |
trademark, or if you do not understand the difference between |
| 50 |
open source and public domain, contact the original author at: |
| 51 |
https://www.freeamigos.nl/contact/. |
| 52 |
|
| 53 |
|
| 54 |
INSTALLATION PROCEDURE: |
| 55 |
|
| 56 |
Just put it in your plugins directory. |
| 57 |
*/ |
| 58 |
|
| 59 |
if ( ! defined( 'ABSPATH' ) ) { |
| 60 |
die(); |
| 61 |
} |
| 62 |
|
| 63 |
define( 'FA_MNE_VERSION', '1.8.6' ); |
| 64 |
define( 'FA_MNE_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); |
| 65 |
define( 'FA_MNE_PLUGIN_DIR', untrailingslashit( dirname( __FILE__ ) ) ); |
| 66 |
define( 'FA_MNE_SLUG', 'manage-notification-emails' ); |
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
/** |
| 72 |
* Initialize the plugin. |
| 73 |
* |
| 74 |
* @since 1.0.0 |
| 75 |
*/ |
| 76 |
|
| 77 |
require_once FA_MNE_PLUGIN_DIR . '/core/class.FAMNE.php'; |
| 78 |
require_once FA_MNE_PLUGIN_DIR . '/core/functions.setup.php'; |
| 79 |
require_once FA_MNE_PLUGIN_DIR . '/modules/settings-page/settings-page.php'; |
| 80 |
require_once FA_MNE_PLUGIN_DIR . '/modules/pluggable/pluggable.php'; |
| 81 |
require_once FA_MNE_PLUGIN_DIR . '/modules/user-email-changed.php'; |
| 82 |
require_once FA_MNE_PLUGIN_DIR . '/modules/custom-recipients.php'; |
| 83 |
require_once FA_MNE_PLUGIN_DIR . '/modules/export-settings.php'; |
| 84 |
|
| 85 |
function fa_mne_init() { |
| 86 |
new FAMNE(); |
| 87 |
add_action( 'plugins_loaded', 'FAMNE::update_check' ); |
| 88 |
} |
| 89 |
|
| 90 |
function fa_mne_uninstall() { |
| 91 |
FAMNE::uninstall(); |
| 92 |
} |
| 93 |
register_uninstall_hook( __FILE__, 'fa_mne_uninstall' ); |
| 94 |
|
| 95 |
fa_mne_init(); |
| 96 |
|