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