PluginProbe
Disable Admin Notices – Hide Dashboard Notifications / 1.0.6
Disable Admin Notices – Hide Dashboard Notifications v1.0.6
1.4.7 1.4.6 1.4.5 trunk 1.0.0 1.0.2 1.0.3 1.0.5 1.0.6 1.1.1 1.1.3 1.1.4 1.2.0 1.2.2 1.2.3 1.2.4 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 All 30 releases
disable-admin-notices / disable-admin-notices.php
disable-admin-notices.php
59 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Webcraftic Disable Admin Notices Individually
4 * Plugin URI: https://wordpress.org/plugins/disable-admin-notices/
5 * Description: Disable admin notices plugin gives you the option to hide updates warnings and inline notices in the admin panel.
6 * Author: Webcraftic <wordpress.webraftic@gmail.com>
7 * Version: 1.0.6
8 * Text Domain: disable-admin-notices
9 * Domain Path: /languages/
10 * Author URI: https://clearfy.pro
11 */
12
13 // Exit if accessed directly
14 if( !defined('ABSPATH') ) {
15 exit;
16 }
17
18 if( defined('WDN_PLUGIN_ACTIVE') || (defined('WCL_PLUGIN_ACTIVE') && !defined('LOADING_DISABLE_ADMIN_NOTICES_AS_ADDON')) ) {
19 function wbcr_dan_admin_notice_error()
20 {
21 ?>
22 <div class="notice notice-error">
23 <p><?php _e('We found that you have the "Clearfy - disable unused features" plugin installed, this plugin already has disable comments functions, so you can deactivate plugin "Disable admin notices"!'); ?></p>
24 </div>
25 <?php
26 }
27
28 add_action('admin_notices', 'wbcr_dan_admin_notice_error');
29
30 return;
31 } else {
32
33 define('WDN_PLUGIN_ACTIVE', true);
34 define('WDN_PLUGIN_DIR', dirname(__FILE__));
35 define('WDN_PLUGIN_BASE', plugin_basename(__FILE__));
36 define('WDN_PLUGIN_URL', plugins_url(null, __FILE__));
37
38
39
40 if( !defined('LOADING_DISABLE_ADMIN_NOTICES_AS_ADDON') ) {
41 require_once(WDN_PLUGIN_DIR . '/libs/factory/core/boot.php');
42 }
43
44 require_once(WDN_PLUGIN_DIR . '/includes/class.plugin.php');
45
46 if( !defined('LOADING_DISABLE_ADMIN_NOTICES_AS_ADDON') ) {
47
48 new WDN_Plugin(__FILE__, array(
49 'prefix' => 'wbcr_dan_',
50 'plugin_name' => 'wbcr_dan',
51 'plugin_title' => __('Webcraftic disable admin notices', 'disable-admin-notices'),
52 'plugin_version' => '1.0.6',
53 'required_php_version' => '5.2',
54 'required_wp_version' => '4.2',
55 'plugin_build' => 'free',
56 'updates' => WDN_PLUGIN_DIR . '/updates/'
57 ));
58 }
59 }