Eliminare il messaggio “Please update now” nel pannello di controllo WordPress

pleaseupdatenow

Chi utilizza WordPress già da un pò sa che quando esce una nuova versione nel pannello di controllo compare il messaggio “Please update now“. Il fatto di per sè è comodo, esce una nuova versione e mi avvisa che è tempo di aggiornare… ma a volte può esserci l’esigenza di nascondere questo messaggio.

Un’ottima soluzione per questo problema è quella che ci fornisce Joost de Valk, copiate ed incollate il codice che trovate qui sotto nel vostro file function.php et voilà il gioco è fatto.

[php]if ( !current_user_can( ‘edit_users’ ) ) {
add_action( ‘init’, create_function( ‘$a’, "remove_action( ‘init’, ‘wp_version_check’ );" ), 2 );
add_filter( ‘pre_option_update_core’, create_function( ‘$a’, "return null;" ) );
}[/php]

Panoramica privacy

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.