Skip to content

Instantly share code, notes, and snippets.

@traeblain
Created July 20, 2011 04:26
Show Gist options
  • Save traeblain/1094336 to your computer and use it in GitHub Desktop.
Save traeblain/1094336 to your computer and use it in GitHub Desktop.
Remove WPMU's Horribly Useless Notification Plugin Nag
<?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 {};
?>
@quicksheep
Copy link

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.

@s3w47m88
Copy link

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).

@isarmstrong
Copy link

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?

@themightymo
Copy link

Any plan to submit this to the wordpress.org plugin repository?

@phillipwilhelm
Copy link

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()
{
}
}
?>

@jonathanstanley
Copy link

I wanted to suggest killing this plugin. You're just enabling WPMU's coercive, arrogant, unscrupulous and unacceptable practice.

@TeaMike
Copy link

TeaMike commented Sep 13, 2013

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment