Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/15/2010 11:59:40 AM (14 years ago)
Author:
apeatling
Message:

Merging 1.2 branch with trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-signup.php

    r2909 r2925  
    361361     * Now generate an activation key and send an email to the user so they can activate their account
    362362     * and validate their email address. Multisite installs send their own email, so this is only for single blog installs.
     363     *
     364     * To disable sending activation emails you can user the filter 'bp_core_signup_send_activation_key' and return false.
    363365     */
    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 );
     366    if ( apply_filters( 'bp_core_signup_send_activation_key', true ) ) {
     367        if ( !bp_core_is_multisite() ) {
     368            $activation_key = wp_hash( $user_id );
     369            update_usermeta( $user_id, 'activation_key', $activation_key );
     370            bp_core_signup_send_validation_email( $user_id, $user_email, $activation_key );
     371        }
    368372    }
    369373
Note: See TracChangeset for help on using the changeset viewer.