Custom Registration page – prevent redirect to wp-login.php?action=register

I already have a custom login from built with the following code: add_action(‘login_redirect’, ‘jwh_redirect_login’, 10, 3); function jwh_redirect_login($redirect_to, $url, $user) { $url = current(explode(‘?’, $url)); if($user->errors[’empty_password’]){ wp_redirect( $url . ‘?jwh_error=nopass’); } else if($user->errors[’empty_username’]){ wp_redirect( $url . ‘?jwh_error=nouser’); } else if($user->errors[‘incorrect_password’]){ wp_redirect( $url . ‘?jwh_error=invalidpass’); } else if($user->errors[‘invalid_username’]){ wp_redirect( $url . ‘?jwh_error=invaliduser’); } else if(!empty($user->data)){ wp_redirect( … Read more

Disable domain redirect

Desired behavior: http://www.situationware.com should stay at www.situationware.com, no registration required. Currently wordpress is automatically redirecting to the Amazon hostname ec2-107-22-241-162.compute-1.amazonaws.com, requesting users register, if I update wp-config.php by uncommenting DOMAIN_CURRENT_SITE I end up with a redirect loop to http://situationware.com/wp-signup.php?new=situationware.com As you’ll see below I do have multisite installed as was working a few months ago … Read more

Redirect to custom URL after registering from a page with registration form

I have this form in a page template <form action=”<?php echo site_url(‘wp-login.php?action=register’, ‘login_post’) ?>” method=”post”> <div class=”formrow requiredRow”><label id=”FullName-ariaLabel” for=”txt_FullName”>Full Name</label> <input class=”required” id=”txt_FullName” title=”Full Name. This is a required field” type=”text” name=”first_name” /></div> <div class=”formrow requiredRow”><label id=”FullName-ariaLabel” for=”txt_FullName”>Email</label> <input class=”required” id=”user_email” title=”Full Name. This is a required field” type=”text” name=”user_email” /></div> <div class=”formrow requiredRow”><label … Read more