Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress Admin Bar

  • Avatar of andrewrowland.g
    andrewrowland.g
    Member

    @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 ‘

  • Dashboard
  • ‘;
    }
    }
    add_action(‘bp_adminbar_menus’, ‘custom_adminbar_dashboard_button’, 1);
    ?>`

You must be logged in to reply to this topic.