Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress Admin Bar

  • Profile photo of andrewrowland.g
    andrewrowland.g
    Participant

    @andrewrowlandggmailcom

    I am trying to add a custom link with dropdowns to the buddypress admin bar, how can I do this? Do you have a snippet of code?

    This is the code I have so far, but can not make dropdowns work:

    <?php
    // custom functions for tweaking BuddyPress
    function custom_adminbar_dashboard_button() {
    // adds a "Dashboard" link to the BuddyPress admin bar if a user is logged in.
    if (is_user_logged_in()) {
    echo '<li><a href="/wp-admin/">Dashboard</a></li>';
    }
    }
    add_action('bp_adminbar_menus', 'custom_adminbar_dashboard_button', 1);
    ?>
  • The topic ‘Buddypress Admin Bar’ is closed to new replies.