Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function bp_my_groups_menu() {
- global $wp_admin_bar;
- $menu_link = trailingslashit( bp_loggedin_user_domain() . bp_get_groups_slug() );
- $wp_admin_bar->add_menu( array(
- 'parent' => 'top-secondary',
- 'id' => 'groups-my-groups',
- 'title' => 'My Groups',
- 'href' => $menu_link,
- ) );
- }
- add_action( 'admin_bar_menu', 'bp_my_groups_menu', 90 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement