Skip to content

Instantly share code, notes, and snippets.

@shanebp
Created May 20, 2018 15:10
Show Gist options
  • Save shanebp/0e6a1a5ca91ddf256b70fc77799a018b to your computer and use it in GitHub Desktop.
Save shanebp/0e6a1a5ca91ddf256b70fc77799a018b to your computer and use it in GitHub Desktop.
BuddyPress - Nouveau template pack - add nav item
function add_members_directory_tab_nouveau( $nav_items ) {
$nav_items['custom'] = array(
'component' => 'members',
'slug' => 'custom',
'li_class' => array('custom no-ajax'),
'link' => trailingslashit( bp_get_members_directory_permalink() . 'custom' ),
'text' => __( 'Custom', 'buddypress' ),
'count' => false,
'position' => 15.8,
);
return $nav_items;
}
add_filter( 'bp_nouveau_get_members_directory_nav_items', 'add_members_directory_tab_nouveau' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment