Re: I would like to disable Email activation
Theoretically, if we’d like to disable it, is there a way we can define it in wp-config or bp-custom?
We’ve got a workaround, but it involves changing a core file, bp-core-signup.php. We changed this line:
$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->users SET user_status = 2 WHERE ID = %d", $user_id ) );
to set the user_status as 0 (activated)
$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->users SET user_status = 0 WHERE ID = %d", $user_id ) );
Next, we changed a line in register.php, in a child theme, where we changed the conditional
<?php if ( bp_registration_needs_activation() ) : ?>
to
<?php if ( !bp_registration_needs_activation() ) : ?>
This solves the problem, but it involves modifying a core file. Any workaround for that?