Snippets

Deactivate Upgrades Notification

Put in functions.php

<?php
function wp_hide_update() {
        global $current_user;
        get_currentuserinfo();

        if ($current_user->ID != 1) { // solo el admin lo ve, cambia el ID de usuario si no es el 1 o añade todso los IDs de admin
            remove_action( 'admin_notices', 'update_nag', 3 );
        }
    }
    add_action('admin_menu','wp_hide_update');
?>

Share this snippet

 
  • Arlen Nagata

    I like this but to be great, this snippet section for wordpress needs more meta info like what versions of wp it works with. :)