Display update notification for admins

Adding this PHP code to the functions.php of your wordpress theme will only display wordpress update notifications to admin users.

       global $user_login;
       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;" ) );

Comments  Leave a Reply

  1. 5 Nuevos Snippets para Wordpress | Eliseos.net January 18, 2011 at 5:09 pm

    […] tendrían que poder visualizar los mensajes de actualizaciones de WordPress o plugins.Fuente: Display update notification for admins Compartir articulo via → Guardar en Delicious Delicoius Compartir en Facebook Facebook Tweet […]

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!