📅  最后修改于: 2022-03-11 14:54:53.337000             🧑  作者: Mango
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 );