Skip to:

Remove User Activations

  • olumi_day


    Hey everyone,

    I need help overriding the user-activation process on my buddypress website. The problem is that it doesn’t seem very consistent in sending out those user activation emails and since time is of the essence for me right now, I would like to just override that step entirely. I have a few users already who have been waiting on the activation email.

    I found this already resolved topic: ( ) that I thought would be of help but it seems that after inserting the suggested code (both in a bp-custom.php file and then in my theme’s functions.php file when that didn’t work) all buddypress does is skip over the part where you get a message to check your email for the activation code and prompts the user to log in.

    Once the user tries to login, they are once again prompted to check their email for the activation code. This is very misleading and somehow an even worse user experience that when I didn’t have activations turned off.

    Does some know how to help me truly turn off activations, please?

    Thank you.

    I’m using both the latest WP and BP releases. This is the website in question:

Viewing 3 replies - 1 through 3 (of 3 total)

  • shanebp


    You can avoid the need for activation email by using this code in bp-custom.php

    function bp_disable_validation( $user_id ) {
      global $wpdb;
      $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->users SET user_status = 0 WHERE ID = %d", $user_id ) );
    add_action( 'bp_core_signup_user', 'disable_validation' );
    add_filter( 'bp_registration_needs_activation', '__return_false', 100 );

    But the next screen will still inject this $title:
    “Check Your Email To Activate Your Account!”

    Even with a template over-ride!

    I think it’s reasonable that if this filter is applied:
    add_filter( ‘bp_registration_needs_activation’, ‘__return_false’ );

    That you shouldn’t need a database operation.
    And the $title should not be injected.

    Currently, the only way I see to change that $title is to hack a core file.
    Hacking core files is NOT recommended.
    That said, see:
    plugins\buddypress\bp-members\bp-members-screens.php and find Line 515.

    [ I’d love to be wrong about all this and hope somebody has an easier approach. ]

    If you’d like to help BP and anyone else trying to solve this problem,
    please submit an enhancement ticket at
    Use the same user / pw you use here.

    Now… a question for you… On your site you have a very nice help tour using overlay boxes. The first box says: “Welcome. Every nonprofit deserves good design and good technology.”

    Did you write a custom script / plugin for this?
    Or find an existing plugin?



    Thank you for the prompt response. In my haste, I ended up using this plugin: ( ) although it wasn’t the ideal choice since I’m already using a lot of plugins.

    I will definitely try this code out although the “Check Your Email to Activate Your Account” notification could still pose a problem. It just sounds like the kind of thing that wouldn’t bother me at first but then I would quickly become nitpicky about. Either way, I’m happy to just have a nice, easy way to override the activation email without the use of a plugin.

    I do wonder if the users that had already registered prior to me using this override will be able to now log in just fine without still needing the activation email. I did a few test runs using the plugin I mentioned above and found that users who registered prior still needed the activation code to log in.

    Finally, the help tour is a custom plugin built on top of twitter’s bootstrap 3 framework. I found the code for it here:
    It was very easy to install and only worked because the theme I’m currently using is built on the bootstrap framework.



    Whoops! The link to the activation disabling plugin is actually here:

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove User Activations’ is closed to new replies.
Skip to toolbar