Posted By

math89 on 12/28/09


Tagged

wordpress


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

BrianCoyDesign
kwameboame


Wordpress, Disable the “please upgrade now” message


 / Published in: PHP
 

URL: http://www.wprecipes.com/how-to-disable-the-please-update-now-message-in-wp-dashboard

Remove the “Please upgrade now” message in the Wordpress Dashboard Paste the code in your functions.php

  1. if ( !current_user_can( 'edit_users' ) ) {
  2. add_action( 'init', create_function( '$a', "remove_action( 'init', 'wp_version_check' );" ), 2 );
  3. add_filter( 'pre_option_update_core', create_function( '$a', "return null;" ) );
  4. }

Report this snippet  

You need to login to post a comment.