Disable BuddyPress Activation Email
Bypasses the activation email and auto-activates new user signups immediately.
This is useful if you want to simplify the registration process and allow users to access their accounts right after signing up without requiring email verification.
How to Use
Add the following code to one of these locations:
- Add to Your Child Theme’s functions.php
- Use a Code Snippets Plugin (Beginner-Friendly)
Here’s the code for disabling the activation email and auto activate signups:
/** * Disable BuddyPress activation email and auto-activate signups. * * @see bp-members/bp-members-functions.php bp_core_signup_user() */ add_filter( 'bp_core_signup_send_activation_key', '__return_false' ); add_action( 'bp_core_signup_user', function( $user_id, $user_login, $user_password, $user_email, $usermeta ) { $signup = BP_Signup::get( array( 'user_email' => $user_email, 'number' => 1 ) ); if ( ! empty( $signup['signups'] ) ) { $key = $signup['signups'][0]->activation_key; bp_core_activate_signup( $key ); } }, 10, 5 );
Note:
- Works with BuddyPress 14.x and BuddyBoss Platform.
- New users will be activated instantly, no email verification step.
- To restore the default behavior, simply remove the code.
