WordPress.org

Ready to get started?Download WordPress

Forums

How do I remove "new version available" in author login in admin/dashboard (3 posts)

  1. slax
    Member
    Posted 5 years ago #

    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

  2. yoshi
    Member
    Posted 5 years ago #

    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');
  3. slax
    Member
    Posted 5 years ago #

    thanks yoshi for the code... i added in the plugin ... worked like a charm... :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.