Skip to:
Content

BuddyPress.org

Changeset 2859


Ignore:
Timestamp:
03/19/2010 10:28:58 AM (15 years ago)
Author:
apeatling
Message:

Added filter to disable the sending of activation emails. Fixes #2180

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-core/bp-core-signup.php

    r2846 r2859  
    358358     * Now generate an activation key and send an email to the user so they can activate their account
    359359     * and validate their email address. Multisite installs send their own email, so this is only for single blog installs.
     360     *
     361     * To disable sending activation emails you can user the filter 'bp_core_signup_send_activation_key' and return false.
    360362     */
    361     if ( !bp_core_is_multisite() ) {
    362         $activation_key = wp_hash( $user_id );
    363         update_usermeta( $user_id, 'activation_key', $activation_key );
    364         bp_core_signup_send_validation_email( $user_id, $user_email, $activation_key );
     363    if ( apply_filters( 'bp_core_signup_send_activation_key', true ) ) {
     364        if ( !bp_core_is_multisite() ) {
     365            $activation_key = wp_hash( $user_id );
     366            update_usermeta( $user_id, 'activation_key', $activation_key );
     367            bp_core_signup_send_validation_email( $user_id, $user_email, $activation_key );
     368        }
    365369    }
    366370
Note: See TracChangeset for help on using the changeset viewer.