remove updgrade message for all but admin


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.