문제

How do we hide upgrade now message in admin panel for wordpress 2.9.2 ? is there's any ? i use

add_action( 'init', create_function( '$a', "remove_action( 'init', 'wp_version_check' );" ), 2 ); add_filter( 'pre_option_update_core', create_function( '$a', "return null;" ) );

but it seem it's not working.

도움이 되었습니까?

해결책

This is the code that worked for me:

add_action('admin_menu','bhhidenag');
function bhhidenag()
{
   remove_action( 'admin_notices', 'update_nag', 3 );
}

You can read more about it in the blog-entry where I found this:
http://www.websitesecrets101.com/how-to-hide-wordpresss-update-now-notification

다른 팁

Run an upgrade. The message will go away.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top