Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

How can I show the update message only to super admin in the network wordpress ? I don't want the other admins/users see the update message that shows the current version. Is there any plugin to do this or I have to changes the core?

share|improve this question
    
-1 for "change the core"... Also, plugin recommendation is off-topic now, as per the new FAQ... "Anyone knows which hooks can do this?" is the way to go :) - Nice snippet by Mridul! –  brasofilo Oct 21 '12 at 12:26
add comment

2 Answers 2

up vote 3 down vote accepted

Create your own plugin with this code or put this in theme's functions.php

add_action('init', 'remove_update_notification', 1)
function remove_update_notification() {
    if (!current_user_can('manage_network')) { // checks to see if current user can update plugins 
        add_action( 'init', create_function( '$a', "remove_action( 'init', 'wp_version_check' );" ), 2 );
        add_filter( 'pre_option_update_core', create_function( '$a', "return null;" ) );
    }
}
share|improve this answer
    
it seems it doesn't know get_currentuserinfo(); fatal error is returned. –  hd. Oct 21 '12 at 8:13
    
if that function is unavailable then wrapping the function in a hook will help. updated the answer above –  Mridul Aggarwal Oct 21 '12 at 9:08
    
Thank you. It is ok now and works like a charm. –  hd. Oct 21 '12 at 9:35
add comment

Lower the level of those users to Editor as the users you are referring to are probably not meant to be administrators. That will degrade some other stuff they can do too, like creating/editing users, managing plugins, managing themes, etc. You can read more on Wordpress Codex.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.