Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/11/2013 01:10:45 PM (12 years ago)
Author:
johnjamesjacoby
Message:

In BP_Component::setup_admin_bar() filter the passed $wp_admin_nav parameter to allow plugins to modify menu contents before they are added to the $wp_admin_bar global. This filter is necessary because WP_Admin_Bar does not have filters in place to allow easy modification of menu items without already knowing their unique identifiers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-component.php

    r7399 r7410  
    370370            return;
    371371
     372        // Filter the passed admin nav
     373        $wp_admin_nav = apply_filters( 'bp_' . $this->id . '_admin_nav', $wp_admin_nav );
     374
    372375        // Do we have Toolbar menus to add?
    373376        if ( !empty( $wp_admin_nav ) ) {
Note: See TracChangeset for help on using the changeset viewer.