📜  好友组隐藏通知加入 - PHP代码示例

📅  最后修改于: 2022-03-11 14:54:53.337000             🧑  作者: Mango

代码示例1
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 );