[buddypress-trac] [BuddyPress] #3443: A proper way to disable activation e-mails for new sign up?

buddypress-trac noreply at wordpress.org
Fri Mar 15 09:13:16 UTC 2013


#3443: A proper way to disable activation e-mails for new sign up?
-------------------------+-----------------------------
 Reporter:  cupid4       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Core         |     Version:  1.5
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+-----------------------------
Changes (by _DorsVenabili):

 * cc: rocvaltor@… (removed)


Comment:

 Ok, I've got the way to disable  the activation email for new  sign up
 users and stop sending the activation email for WP multisite + BP
 installations:

 {{{
 // Change the text on the signup page
 add_filter( ‘bp_registration_needs_activation’, '__return_false' );

 function my_disable_activation( $user, $user_email, $key, $meta = ” ) {
    // Activate the user
    bp_core_activate_signup( $key );

    // Return false so no email sent
    return false;
 }
 add_filter( ‘wpmu_signup_user_notification’, ‘my_disable_activation’, 10,
 4 );

 //Disable new blog notification email for multisite
 remove_filter( ‘wpmu_signup_blog_notification’,
 ‘bp_core_activation_signup_blog_notification’, 1, 7 );
 add_filter( ‘wpmu_signup_blog_notification’, '__return_false' );

 // disable sending activation emails for multisite
 remove_filter( ‘wpmu_signup_user_notification’,
 ‘bp_core_activation_signup_user_notification’, 1, 4 );
 add_filter( ‘wpmu_signup_user_notification’, '__return_false', 1, 4 );
 }}}

 Hope someone helps.

 Cheers! :D

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3443#comment:11>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list