Activity

  • Anton replied to the topic Delete node in Admin bar in the forum BuddyBoss 3.0 10 years ago

    I’m also trying to add node in existing item but white screen is appear. Please advise what’s wrong:

    function mb_adminbar_menu_tabs(){
    global $bp;
    global $wp_admin_bar;
    $parentch_slug = ‘settings’;

    $wp_admin_bar->add_node( array(
    ‘parent’ => ‘settings’,
    ‘id’ => ‘chat’,
    ‘title’ => __( ‘Чат’ ),
    ‘href’ => $bp->loggedin_user->domain . $parentch_slug.’/chat’
    ) );

    }
    add_action(‘admin_bar_menu’, ‘mb_adminbar_menu_tabs’, 201);

    thank you,
    Anton