-
-
Save traeblain/1094336 to your computer and use it in GitHub Desktop.
<?php | |
/* | |
Plugin Name: Remove WPMU Notification Plugin Nag | |
Plugin URI: http://wp.me/p1Aj2B-6g | |
Description: WPMU started trying to force people that use plugins by their developers to install a Notification plugin by making a persistent notification bug the admins. This removes that annoying piece. | |
Version: 1.2 | |
Author: Trae Blain | |
Author URI: http://traeblain.com | |
License: GPL2 | |
*/ | |
if ( function_exists( 'wdp_un_check' ) ) { | |
remove_action( 'admin_notices', 'wdp_un_check', 5 ); | |
remove_action( 'network_admin_notices', 'wdp_un_check', 5 ); | |
} | |
class WPMUDEV_Update_Notifications {}; | |
class WPMUDEV_Dashboard_Notice {}; | |
?> |
By the way, the error is saying this -
Cannot redeclare class WPMUDEV_Dashboard_Notice in /public_html/wp-content/plugins/tmb-wpmu-nag-remove/tmb-wpmu-nag-remove.php on line 18
Hey shuvonasir, I received the same error message but found a workaround. I deleted the offending class declaration from the file and it worked. Plugin activated fine and the notification disappeared.
Thank you. I found your article, with the picture of you telling with your fist and I had literally done that seconds before I decided to Google this. WTF WPMU I hate you (WPMU).
Hay Gais! How can I reduce my client's site security so that I'm not inconvenienced by having to install a dashboard that is only visible to my account and not theirs anyway?
... really?
Any plan to submit this to the wordpress.org plugin repository?
I had an issue on my WPMU network with this. I used another plugin along with your code and worked flawlessly. Thought I'd share-----
if ( function_exists( 'wdp_un_check' ) ) {
remove_action( 'admin_notices', 'wdp_un_check', 5 );
remove_action( 'network_admin_notices', 'wdp_un_check', 5 );
}
class WPMUDEV_Update_Notifications {
public function __construct()
{
}
}
?>
I wanted to suggest killing this plugin. You're just enabling WPMU's coercive, arrogant, unscrupulous and unacceptable practice.
Hey guys.. just wanted to point you to the (stripped-down, working in WP 3.6.1) plugin for this function:
http://wordpress.org/plugins/wpmu-no-nag/
A great plugin indeed, but there is a problem. With this awesome plugin installed, I could not install the CUSTOMPRESS plugin of WPMUDEV. So if there is any update coming soon to this plugin, please be sure to handle this bug.
Again, thank you so much for your fabulous creation.