@mushfick
11 years, 7 months ago
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.
Oh and btw I’m using WordPress 3.5.1 and BuddyPress 1.7 Thanks.