PluginProbe
Admin Notices Manager / 1.2.0
Admin Notices Manager v1.2.0
trunk 1.1.0 1.2.0 1.3.0 1.3.1 1.4.0 1.5.0 1.6.0
admin-notices-manager / admin-notices-manager.php

admin-notices-manager.php in Admin Notices Manager 1.2.0, at admin-notices-manager.php

57 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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.2.0
9 * Text Domain: admin-notices-manager
10 * Domain Path: /languages
11 * License: GPL2
12 *
13 * @package AdminNoticesManager
14 *
15 */
16
17 /*
18 Admin Notices Manager
19 Copyright(c) 2021 WP White Security (email : info@wpwhitesecurity.com)
20
21 This program is free software; you can redistribute it and/or modify
22 it under the terms of the GNU General Public License, version 2, as
23 published by the Free Software Foundation.
24
25 This program is distributed in the hope that it will be useful,
26 but WITHOUT ANY WARRANTY; without even the implied warranty of
27 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 GNU General Public License for more details.
29
30 You should have received a copy of the GNU General Public License
31 along with this program; if not, write to the Free Software
32 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
33 */
34
35 // Useful global constants.
36 if ( ! defined( 'ADMIN_NOTICES_MANAGER_VERSION' ) ) {
37 define( 'ADMIN_NOTICES_MANAGER_VERSION', '1.2.0' );
38 define( 'ADMIN_NOTICES_MANAGER_URL', plugin_dir_url( __FILE__ ) );
39 define( 'ADMIN_NOTICES_MANAGER_PATH', plugin_dir_path( __FILE__ ) );
40 define( 'ADMIN_NOTICES_MANAGER_INC', ADMIN_NOTICES_MANAGER_PATH . 'includes/' );
41 }
42
43 // Include files.
44 require_once ADMIN_NOTICES_MANAGER_INC . 'functions/core.php';
45
46 // Activation/Deactivation.
47 register_activation_hook( __FILE__, '\AdminNoticesManager\Core\activate' );
48 register_deactivation_hook( __FILE__, '\AdminNoticesManager\Core\deactivate' );
49
50 // Require Composer autoloader if it exists.
51 if ( file_exists( ADMIN_NOTICES_MANAGER_PATH . '/vendor/autoload.php' ) ) {
52 require_once ADMIN_NOTICES_MANAGER_PATH . 'vendor/autoload.php';
53 }
54
55 // Bootstrap.
56 AdminNoticesManager\Core\setup();
57