Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is there a way to disable account activation for WPMU then log the user in and redirect them to another page?

I am running on WPMU with BuddyPress.

share|improve this question

1 Answer 1

In a WPMU setup the account information is sent to the wp_signup table before being passed to the wp_users table.

an easy fix for this is:

function your_disable_activation( $user, $user_email, $key, $meta = '' ) {
    // Activate the user
    $user_id = wpmu_activate_signup( $key );

    wp_set_auth_cookie( $user_id, true, is_ssl() );

    wp_redirect( /*redirect to */ site_url() );
    exit;

}
add_filter( 'wpmu_signup_user_notification', 'your_disable_activation', 10, 4 );
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.