Hide WPMU dashboard plugin alert and other nag updates

Age of Article Warning:
This article was originally published 78 months ago. The information, tips and techniques explained may outdated. Examples shown on this page may no longer work. Please consider this when viewing the below content.

A quick and simple way to hide WPMU dashboard plugin alerts or other annoying “nag” updates in the WordPress admin dashboard can be achieved with a simple piece of css display:none code in your childtheme’s functions.php file.

This is probably not the “ideal” way to remove these “nags” however sometimes other options can be less effective. For example in the case of the WPMU dashboard plugin alert, it’s automatically triggered when you install WPMU plugins. The recommended method to remove this alert- is to install the free dashboard plugin or to make changes to lines in the plugin file that is triggering this.

Of course we all know that when we make changes to theme files or plugin files, that when the next update comes along- those changes are overwritten, so then we have to go through the painstaking process of trying to remember what “mini” changes we made along the way.

This is why we use “childthemes”! Just in case you are new to WordPress and don’t know what a childtheme is –> we create a childtheme that allows us to customise a WordPress parent theme to suit our needs or the needs of our client. When the parent theme is updated, then our customisations aren’t lost.

This isn’t an option for WordPress plugins, so minor tweaks can sometimes be made by adding code into the childtheme’s functions.php file- which is safe from updates to the parent theme.

Remember to always have a backup of your WordPress files before making any changes.

So here’s your code snippet to remove the following alert:

“Easily get updates, support, and one-click WPMU DEV plugin/theme installations right from in your dashboard – install the free WPMU DEV Dashboard plugin. (find out more)”

//add a custom css change to hide something in the dashboard
function change_css_hide_wpmu_dash()
echo ‘<style type="text/css"> .wp-admin div.error {display: none !important;}</style>’;
add_action(‘all_admin_notices’, ‘change_css_hide_wpmu_dash’);

Hide WPMU dashboard plugin alert

remove the alert - WPMU dashboard plugin

6 thoughts on “Hide WPMU dashboard plugin alert and other nag updates”

  1. Thanks for this post David, I have been searching for ages to solve this problem. I dont know why you just cant have a dismiss message button.

    Thanks again

    • Hi Kevin,
      happy to have helped. I know it would be good to have that dismiss button, though I guess they are promoting their products.
      Kind regards, David

  2. This probably isn’t a good idea: it looks like it will hide ALL error notifications from the admin in WP. Looks like newer versions have an even louder advert, with its own selectors: #wpmu-install-dashboard

    • Hi Kristarella

      Thanks for your comment, yes i guess there is a chance you could hide other notifications, though it is targeting the specific alert that they add, via css so won’t hide other alerts like WordPress updates and theme update messages, etc.

      I haven’t tried their newer plugins, so not sure of current alert messages, though the solution above I have found to work in the past on websites.

      You could further target the css selectors more specifically, like:

      echo '<style type="text/css"> .wp-admin div.wrap div.error.fade {border: 0 !important;} .wp-admin div.wrap div.error.fade p {display:none !important;} </style>';

  3. Thank you very much! Your post is very helpful, now I could get rid of the unwanted nag messages on my dashboard.

    I targeted the #wpmu-install-dashboard selector, and this work for me,

    echo ‘ #wpmu-install-dashboard, .wpmu-update-row {display: none !important;}’;

Comments are closed.