Support » Fixing WordPress » How do I remove “new version available” in author login in admin/dashboard

  • i see this in the author login on the dashboard
    “WordPress 2.6.2 is available! Please notify the site administrator.”

    please tell me how do i remove it for all other User roles except for Admin?

    thanks

    slax

Viewing 2 replies - 1 through 2 (of 2 total)
  • Adding the code below in your plugin or function.php(in theme) will hide the notice from anyone but admin.

    function remove_wp_update_notice() {
    	if ( !current_user_can('manage_options') ) {
    	  remove_action( 'admin_notices', 'update_nag', 3);
    	  }
    }
    add_action('admin_init', 'remove_wp_update_notice');

    thanks yoshi for the code… i added in the plugin … worked like a charm… 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I remove “new version available” in author login in admin/dashboard’ is closed to new replies.