Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.