Created
May 20, 2018 15:10
-
-
Save shanebp/0e6a1a5ca91ddf256b70fc77799a018b to your computer and use it in GitHub Desktop.
BuddyPress - Nouveau template pack - add nav item
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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