| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Admin Notices Manager |
| 4 |
* Plugin URI: https://www.wpwhitesecurity.com/ |
| 5 |
* Description: Better manage admin notices & never miss an important WordPress and developer message. |
| 6 |
* Author: WP White Security |
| 7 |
* Author URI: https://www.wpwhitesecurity.com/ |
| 8 |
* Version: 1.3.0 |
| 9 |
* Text Domain: admin-notices-manager |
| 10 |
* Domain Path: /languages |
| 11 |
* License: GPL2 |
| 12 |
* |
| 13 |
* @package AdminNoticesManager |
| 14 |
*/ |
| 15 |
|
| 16 |
/* |
| 17 |
Admin Notices Manager |
| 18 |
Copyright(c) 2022 WP White Security (email : info@wpwhitesecurity.com) |
| 19 |
|
| 20 |
This program is free software; you can redistribute it and/or modify |
| 21 |
it under the terms of the GNU General Public License, version 2, as |
| 22 |
published by the Free Software Foundation. |
| 23 |
|
| 24 |
This program is distributed in the hope that it will be useful, |
| 25 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 26 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 27 |
GNU General Public License for more details. |
| 28 |
|
| 29 |
You should have received a copy of the GNU General Public License |
| 30 |
along with this program; if not, write to the Free Software |
| 31 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 32 |
*/ |
| 33 |
|
| 34 |
// Useful global constants. |
| 35 |
if ( ! defined( 'ADMIN_NOTICES_MANAGER_VERSION' ) ) { |
| 36 |
define( 'ADMIN_NOTICES_MANAGER_VERSION', '1.3.0' ); |
| 37 |
define( 'ADMIN_NOTICES_MANAGER_URL', plugin_dir_url( __FILE__ ) ); |
| 38 |
define( 'ADMIN_NOTICES_MANAGER_PATH', plugin_dir_path( __FILE__ ) ); |
| 39 |
define( 'ADMIN_NOTICES_MANAGER_INC', ADMIN_NOTICES_MANAGER_PATH . 'includes/' ); |
| 40 |
} |
| 41 |
|
| 42 |
// Include files. |
| 43 |
require_once ADMIN_NOTICES_MANAGER_INC . 'functions/core.php'; |
| 44 |
|
| 45 |
// Activation/Deactivation. |
| 46 |
register_activation_hook( __FILE__, '\AdminNoticesManager\Core\activate' ); |
| 47 |
register_deactivation_hook( __FILE__, '\AdminNoticesManager\Core\deactivate' ); |
| 48 |
|
| 49 |
// Require Composer autoloader if it exists. |
| 50 |
if ( file_exists( ADMIN_NOTICES_MANAGER_PATH . '/vendor/autoload.php' ) ) { |
| 51 |
require_once ADMIN_NOTICES_MANAGER_PATH . 'vendor/autoload.php'; |
| 52 |
} |
| 53 |
|
| 54 |
// Bootstrap. |
| 55 |
AdminNoticesManager\Core\setup(); |
| 56 |
|