Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reorder items in wp-admin-bar-my-account


  • screampuff
    Participant

    @screampuff

    Hello, I’m looking to rearrange the order of items in the user dropdown menu of the wp toolbar.

    Another plugin (Achievements for WP) has placed itself below the Log Out link, so I’d simply like to move it above.

    I know there’s code to put in bp-custom.php, but the only kind of code I’ve found is for other BP menus, it would looks something like this:

    ffunction bbg_change_admin_bar_order() {
    global $wp_admin_bar;
    
    $wp_admin_bar->user_actions[‘dpa_my_achievements’][‘position’] = 20;
    $wp_admin_bar->user_actions[‘logout’][‘position’] = 50;
    }
    add_action( ‘bp_setup_nav’, ‘bbg_change_admin_bar_order’, 999 );

    But that’s not working, I’m pretty new to this so am not sure of the right syntax.

  • The topic ‘Reorder items in wp-admin-bar-my-account’ is closed to new replies.
Skip to toolbar