Oh and btw I’m using WordPress 3.5.1 and BuddyPress 1.7
Thanks.
@mushfick,
the menu title should use at least a span id + $count
take inspiration within ie. bp-members/bp-mebers-adminbar.php
and see the function bp_members_admin_bar_notifications_menu
Thanks chouf1 for your suggestions,
I found what I was actually looking for in buddypress/bp-friends/bp-friends-loader.php
Line 97:
`
$main_nav = array(
‘name’ => sprintf( __( ‘Friends %d’, ‘buddypress’ ), friends_get_total_friend_count() ),
‘slug’ => $this->slug,
‘position’ => 60,
‘screen_function’ => ‘friends_screen_my_friends’,
‘default_subnav_slug’ => ‘my-friends’,
‘item_css_id’ => $bp->friends->id
);
`
`‘name’ => sprintf( __( ‘Friends %d’, ‘buddypress’ ), friends_get_total_friend_count() )`
So I’m just going to substitute my function for friends_get_total_friend_count().
Leaving this here in case somebody else ever wants to find this out as well.