WP 2.3.1 Plugin – Notify Admin Only of WordPress Updates

Notice: This is an older version. To Download the newest version of the Notify Admin Only plugin – go here.

Well, WordPress 2.3.1 is out and if you’re anything like me, you still haven’t upgraded..

I know it was just released yesterday but for those of you who had already upgraded to WP2.3 within the last few weeks, you may have noticed the AWESOME NEW UPDATE NAG that appears in the back-end of your site !

WP2.3 now lets you know, automatically, as soon as there is a new version released. Then, a yellow nag message appears on every page in the back-end, saying: “A new version of WordPress is available! Please update now”. All very cool and useful, especially if you’ve gone and customized the Dashboard (with plugins or otherwise) so that you don’t see the headlines coming from WP.

wp notifying the admin

My problem, as a site administrator, was that a yellow message also pops up for all my users. It says: “A new version of WordPress is available! Please notify the site administrator”. Now, some might not have a problem with this (and for most of my sites this won’t really be a problem) but for sites like indyish.com that have a lot of users, i personally wouldn’t want all of them notifying me of this. In fact, i probably don’t even want them seeing this notice at all.

So, all that to say.. i wrote a simple plugin that disables this notice for all – except – the site Administrator.

This is the basic function i used:
(copy/pasting this code directly is sometimes problematic, so unless you know what you are doing i suggest downloading the plugin file instead. See Below.)


< ?php
function stop_wpupdate() {
$cur = get_option( 'update_core' );
if ( ! isset( $cur->response ) || $cur->response != 'upgrade' )
return false;
if ( current_user_can('manage_options') )
return false;
else
remove_action( 'admin_notices', 'update_nag', 3 );
echo "

$msg

";
}
add_action( 'admin_notices', 'stop_wpupdate', 1 );
?>

» Or, you can just download the plugin file here and upload/activate it on your site.
[Note: This plugin requires WordPress 2.3 or above.]

Enjoy!

Comments 29

  1. Mygf- wrote:

    Great plugin :). I just noticed this message myself. I have no idea why WP would have this display to non admins. Completely pointless, an admin knows whether they’re going to update to a newer WP or not. Anyway, cheers! Thought I was going to have to edit the code myself (cue 10 hours of random file editing, not exactly knowing exactly what I’m changing but just crossing my fingers and hoping for the best :p)

    Posted 02 Jan 2008 at 6:28 pm
  2. admin wrote:

    hey thanks,

    i was hoping the plugin might be a little time-saver for admins!

    Posted 02 Jan 2008 at 11:51 pm
  3. rarNabeApept wrote:

    omg.. good work, guy

    Posted 22 Sep 2008 at 2:58 pm
  4. VoTaN wrote:

    THANK YOU,
    It’s just what I was looking for :)

    Posted 16 Nov 2008 at 12:58 pm
  5. Dev wrote:

    Good article. Which file is that which has the above mentioned code? I did like to play with it a little. Would appreciate your update on this.
    Regards.

    Posted 13 Mar 2009 at 9:21 am
  6. elran wrote:

    yeah, this didn’t seem to work for me anymore..

    that is, the upgrade from 2.7 to 2.7.1 showed a notification for all users with any permissions (not just admin).

    i’ll probably try to update this soon as i get a chance..

    if anyone out there has a fix, by all means: post it here in the comments or send me an email.

    Posted 16 Mar 2009 at 1:54 pm
  7. Lazzymonk wrote:

    the following code works in 2.8+

    function stop_wpupdate() {
    if (current_user_can(‘level_10′))
    {
    return;
    }
    else
    {
    remove_action( ‘admin_notices’, ‘update_nag’, 3 );
    }
    }
    add_action( ‘admin_notices’, ‘stop_wpupdate’, 1 );

    Posted 29 Jul 2009 at 4:26 am
  8. elran wrote:

    awesome! thanks Lazzymonk..

    i will test this out next chance i get and finally update this plugin for WP2.8 -

    sweet.

    Posted 02 Aug 2009 at 11:13 am
  9. elran wrote:

    hey all,

    this plugin is now updated for WP 2.8+

    you can find the new version here

    Posted 04 Aug 2009 at 12:26 pm
  10. uninstall google wrote:

    Oh my goodness! Awesome article dude! Thank you, However I am having issues with your RSS.
    I don’t understand the reason why I can’t join it. Is there anyone else having similar RSS issues?
    Anyone who knows the solution will you kindly respond?
    Thanx!!

    Posted 24 Aug 2014 at 10:43 am
  11. connect google plus wrote:

    Hi! This is kind of off topic but I need some advice from an established blog.

    Is it tough to set up your own blog? I’m not very techincal but I can figure things out pretty
    quick. I’m thinking about creating my own but I’m not sure where to begin. Do you have any points or
    suggestions? Thanks

    Posted 29 Aug 2014 at 3:05 am
  12. Get Free Charles wrote:

    Awesome post.

    Posted 13 Sep 2014 at 9:42 pm
  13. perdre beaucoup de wrote:

    Très précieuse information, Sincères remerciements.

    Posted 14 Sep 2014 at 10:02 pm
  14. can i buy likes on wrote:

    Howdy! Someone in my Facebook grouyp shared this website with us so I came to look
    it over. I’m definitely loving the information. I’m bookmarking and will be
    tweeting this to my followers! Terrific blog and fantastic design and
    style. get instant instagram likes

    Posted 15 Sep 2014 at 10:18 am
  15. Giovanni Horenstein wrote:

    Black Leopards and Black Jaguars are both called Panthers.
    When I first started sculpting, I found that I also needed to gain experience in achieving movement and action as well.
    Once when some visitors were viewing the Cheetahs at Monarto Zoo, they
    were astounded to hear this large animal me-ow just like a
    domestic Pussy Cat.

    Posted 18 Sep 2014 at 5:33 am
  16. clothing companies wrote:

    What i do not understood is in fact how you’re not really a lot more well-liked
    than you may be right now. You are very intelligent.

    You know therefore considerably when it comes to this matter, made me personally
    believe it from so many various angles. Its like men and women don’t seem to be fascinated except
    it is one thing to accomplish with Girl gaga! Your individual stuffs great.

    At all times take care of it up!

    Posted 21 Sep 2014 at 1:56 pm
  17. rayban wrote:

    Very nice article. I definitely appreciate this website.
    Continue the good work!

    Posted 23 Sep 2014 at 4:25 am
  18. remove google plus wrote:

    I have read so many articles or reviews on the topic of the blogger lovers however this post
    is truly a pleasant post, keep it up.

    Posted 29 Sep 2014 at 8:16 am
  19. hungry shark game wrote:

    For a graphic clip oof an actual prevalence of shark finning, click ?ere It ?s my hope that ?fter viewing this clip
    y?u will want to? b? part of t?? battle to protect sharks.

    Posted 06 Oct 2014 at 4:52 pm
  20. hungry shark wrote:

    Cheats for Hungry Shark Evllution ?re one h?ndred% protectted ?nd ddaling
    on all Android and iOS Units. Add Hungry Sharek Evolution coins,
    gems employing ?our account ?ith simply ?everal clicks ?f button.

    Posted 06 Oct 2014 at 10:05 pm
  21. bangalore to coorg wrote:

    If some one wants to be updated with latest technologies then he
    must be go to see this website and be up to date everyday.

    Posted 24 Oct 2014 at 3:15 am
  22. jetpack joyride wrote:

    Utilizing cheat engine and Android programming we
    launch top quality, exclusive mods!

    Posted 24 Oct 2015 at 11:41 pm
  23. camscanner free wrote:

    Despite a quite easy to use user interface, CamScanner does
    have some extremely functional attributes that will
    certainly cater for the majority of, otherwise all your demands.

    Posted 26 Oct 2015 at 3:02 am
  24. boxer tv wrote:

    Earlier today Boxer announced that they have actually partnered with Cyanogen to bring a top
    notch email encounter, and also it will be readily
    available with the launch of Cyanogen OS 12. This partnership will bring the premium version of Boxer in addition to a
    brand-new Fabric Design that will only be located in Cyanogen OS 12.

    Posted 26 Oct 2015 at 3:33 am
  25. Kimber wrote:

    Pero sin lugar a duda el mejor método que debe de seguir si efectivamente quieres ver resultados reales en una semana y sin poner en riesgo tu salud es
    el FACTOR QUEMA GRASA de Dr. Charles Livingston, es un sistema realmente
    infalible que te ayudara bajar de peso a la
    velocidad del sol.

    Posted 12 Nov 2015 at 4:50 pm
  26. Rebbeca wrote:

    Versuch mal die sogenannte Ein tag essen den anderen nicht Diät.Da brauchst du erstmal 2 Wochen Eingewöhnungszeit.Der
    Clou ist, dass du einen Tag isst soviel du kannst, bzw.

    Posted 13 Nov 2015 at 6:44 pm
  27. binary options trading wrote:

    What Trades to Place The first decision you’ll want
    to make when you’re pondering of placing any kind of Binary Choices commerce is just what asset, commodity or stock
    trade you want to place your trades on.

    Posted 22 Nov 2015 at 11:06 pm
  28. jpanthera wrote:

    great info thx

    Posted 17 Aug 2017 at 7:03 am
  29. minimonster wrote:

    More about the author

    Posted 17 Aug 2017 at 7:55 am

Post a Comment

Your email is never published nor shared. Required fields are marked *