What are you gonna do with your Groups without Activity system it’s the ‘comments’ part of a group.
Just to make sure where do you want to delete the activity from showing up.
example.org/groups/test-group/ * here */
example.org/members/profile/ * here */
?
You can always remove the activity-loop from the template structure.
When BuddyPress doesn’t past the activity-loop it will not show up on your site of course.
Thanks Shmoo. My community is based mainly on WP Events manager for groups, BBPress and Buddypress links. I don’t need activity at all (but just like I said, BP Links uses it for comments, so I had to turn it on). So basically I want to get rid of it in both places – in groups and profiles.
When I will remove activity-loop there is still the link in navigation tabs :/
Yeah I was afraid of that too..
I think I’ve seen some Filter a few days ago to remove a menu-tab. This way you can remove lets say the activity link from popping up on the navigation menu’s.
Try Google at this: BuddyPress + remove + item + PHP_code_that_prints_the_menu()
I got rid the activity from the profile with this code:
function bphelp_remove_groups_from_profile(){
bp_core_remove_nav_item('activity');
}
add_action('bp_activity_setup_nav','bphelp_remove_groups_from_profile');
but still looking for a solution to eliminate it from Group page
I thought it’s a piece of cake for advanced BP-ers 🙁
I’m also looking for the same piece of code. Did you find anything yet?
Just had to do this on an installation, here is the code:
function bp_group_remove_tabs() {
global $bp;
if (isset($bp->groups->current_group->slug) && $bp->groups->current_group->slug == $bp->current_item)
{
// Duplicate the line below changing 'home' for each tab you wish to remove
$bp->bp_options_nav[$bp->groups->current_group->slug]['home'] = false;
}
}
add_action( 'bp_setup_nav', 'bp_group_remove_tabs', 999 );