PluginProbe
Disable Admin Notices – Hide Dashboard Notifications / 1.0.5
Disable Admin Notices – Hide Dashboard Notifications v1.0.5
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 in Disable Admin Notices – Hide Dashboard Notifications 1.0.5, at disable-admin-notices.php

58 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.5
8 * Text Domain: disable-admin-notices
9 * Domain Path: /languages/
10 */
11
12 // Exit if accessed directly
13 if( !defined('ABSPATH') ) {
14 exit;
15 }
16
17 if( defined('WDN_PLUGIN_ACTIVE') || (defined('WCL_PLUGIN_ACTIVE') && !defined('LOADING_DISABLE_ADMIN_NOTICES_AS_ADDON')) ) {
18 function wbcr_dan_admin_notice_error()
19 {
20 ?>
21 <div class="notice notice-error">
22 <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>
23 </div>
24 <?php
25 }
26
27 add_action('admin_notices', 'wbcr_dan_admin_notice_error');
28
29 return;
30 } else {
31
32 define('WDN_PLUGIN_ACTIVE', true);
33 define('WDN_PLUGIN_DIR', dirname(__FILE__));
34 define('WDN_PLUGIN_BASE', plugin_basename(__FILE__));
35 define('WDN_PLUGIN_URL', plugins_url(null, __FILE__));
36
37
38
39 if( !defined('LOADING_DISABLE_ADMIN_NOTICES_AS_ADDON') ) {
40 require_once(WDN_PLUGIN_DIR . '/libs/factory/core/boot.php');
41 }
42
43 require_once(WDN_PLUGIN_DIR . '/includes/class.plugin.php');
44
45 if( !defined('LOADING_DISABLE_ADMIN_NOTICES_AS_ADDON') ) {
46
47 new WDN_Plugin(__FILE__, array(
48 'prefix' => 'wbcr_dan_',
49 'plugin_name' => 'wbcr_dan',
50 'plugin_title' => __('Webcraftic disable admin notices', 'disable-admin-notices'),
51 'plugin_version' => '1.0.5',
52 'required_php_version' => '5.2',
53 'required_wp_version' => '4.2',
54 'plugin_build' => 'free',
55 'updates' => WDN_PLUGIN_DIR . '/updates/'
56 ));
57 }
58 }