Posted By

xavsio4 on 06/09/11


Tagged

php wordpress


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Kurt


Wordpress - Remove upgrade message


 / Published in: 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.