tags:

views:

50

answers:

2

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.

A: 

Run an upgrade. The message will go away.

Brendan Long
+1  A: 

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

codescape
thanks, i will try this ;D
justjoe