Viewing 1 replies (of 1 total)
  • Plugin Author Mathieu Viet

    (@imath)

    Hi,

    The difference between rendez-vous and BuddyDrive is BuddyDrive does not add a create step. As rendez-vous does add a create step, i don’t think it’s necessary.

    But, if you really need to force rendez-vous groups activation, you can always use this code:

    function rendez_vous_force_group_activation( $group_id = 0 ) {
    	if ( empty( $group_id ) ) {
    		return;
    	}
    
    	// Extra check, not really needed...
    	if ( ! bp_is_active( 'groups' ) ) {
    		return;
    	}
    
    	groups_update_groupmeta( $group_id, '_rendez_vous_group_activate', 1 );
    }
    add_action( 'groups_group_create_complete', 'rendez_vous_force_group_activation', 10, 1 );

Viewing 1 replies (of 1 total)
  • The topic ‘Auto activation in groups ?’ is closed to new replies.