Forums

The WordPress MU forums have moved to the MultiSite forum on WordPress.org

Signing Up Without Activating (4 posts)

  1. PierreMinik
    Member
    Posted 2 years ago #

    Hello,

    I'd like to know how I can skip the activation process for newly signed up users. I'm making a shopping site with Wordpress MU and I want users to be able to sign up without having to activate their account through the emailed link first.

    Regards,
    Pierre Minik

  2. PierreMinik
    Member
    Posted 2 years ago #

    So I found this plugin: http://premium.wpmudev.org/project/remove-email-verification-from-signup/installation but you have to pay for membership of that site to be able to download it.

    Can't afford that. :-S
    There must be someone that knows a way to skip the activation process? Currently reading through plugin API but I'm no good coder.

  3. PierreMinik
    Member
    Posted 2 years ago #

  4. sirbijan
    Member
    Posted 2 years ago #

    Hello guys, after all me and my friend did some tweaking and now by changing wp-includes/wpmu-functions.php you can bypass the email activation link!

    Edit wp-includes/wpmu-functions.php
    Go find the definition of this function: wpmu_signup_user_notification()

    In the last line when it calls wp_mail() function to send the activation email to the user, comment it and write this:

    # Redirecting to key activation page, no need for the user to check his/her email!
    
    	# We don't need this line! It'll mail the user ;)
    	//wp_mail($user_email, $subject, $message, $message_headers);
    
    	?>
        <h1 style='color: white;'>Please wait to generate your password!</h1>
        <br />
        <h3 style='color: red;'>Don't forget to change password after first login</h3>
        <br />
        <script type="text/javascript">
    	window.location = "http://<?php print $_SERVER['SERVER_NAME'];?>/wp-activate.php?key=<?php print $key; ?>";
    	</script>
        <?php
    	return true;

    This is very easy guys. The user gets redirected to the activation page right after hitting the signup key. It's not such a nice tweak since you need to have Javascript enabled, but we all sort of have it in our browsers, don't we?!

Topic Closed

This topic has been closed to new replies.

About this Topic