1function victor_dont_save_join_group_activity( $activity_object ) {
2
3 $exclude = array( 'joined_group' );
4
5 if( in_array( $activity_object->type, $exclude ) )
6 $activity_object->type = false;
7
8}
9add_action('bp_activity_before_save', 'victor_dont_save_join_group_activity', 1, 1 );