Posted By

zac on 02/21/11


Tagged

wordpress functions


Versions (?)

remove updgrade message for all but admin


 / Published in: PHP
 

  1. if ( !current_user_can( 'install_themes' ) ) {
  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.