how to edit wpmu nelo functions for 3.1 admin bar hacks

This wpmu.org post about How to Add or Remove Links From the WordPress 3.1 Admin Bar seemed simple enough. All attempts to edit nelo's functions.php using either a parent or child file, however, result in the blank white page madness.

Any suggestions for getting this hack to work? Specifically, we're looking to remove the Updates menu with the big glaring number next to it. Perhaps the Update Notifications plugin could be massaged to do this sitewide, but for now any advice is appreciated.

Thanks again for everything.

  • Mason
    • DEV MAN’s Sidekick

    Hiya jcnjr,

    My guess would be that the code was put in the middle of another function or some other place incorrect?

    I just tested with Nelo by adding the code to line 15 (or directly below this):
    load_theme_textdomain( TEMPLATE_DOMAIN, TEMPLATEPATH . '/languages/' );

    This is what I added to remove the udpates

    function mjnelo_admin_bar_render() {
    	global $wp_admin_bar;
    	$wp_admin_bar->remove_menu('updates');
    }
    add_action( 'wp_before_admin_bar_render', 'mjnelo_admin_bar_render' );

    On my install this worked. Let us know if this continues to be an issue for you.

    Thanks!

  • jcnjr
    • HummingBird

    Beautiful, thank you! I did, however, have to edit the parent functions file. Just copying functions.php to the child folder, without any edits, caused the blank page.

    Now, if only we could get an option in Update Notification to turn off notices for theme updates... :wink:

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.