buddy group hide notice join
function victor_dont_save_join_group_activity( $activity_object ) {
$exclude = array( 'joined_group' );
if( in_array( $activity_object->type, $exclude ) )
$activity_object->type = false;
}
add_action('bp_activity_before_save', 'victor_dont_save_join_group_activity', 1, 1 );
Are there any code examples left?
New code examples in category PHP