Redirect registration not working
-
How DO I redirect the registrater url, your sticky doesn’t work, as it in fact says. If you change the site_url parameter to ‘register’ instead of login it works but afaics only if the previous login cookie exists since whilst shoing the page the user is also logged in. Clearing cookies then fails to do anything upon clicking ‘register’. Login is then stuffed up.
Any ideas?
function my_registration_page( $register_url ) {
return site_url( ‘/join-us/’, ‘login’ );
}
add_filter( ‘register_url’, ‘my_registration_page’, 10, 1 );But because the url in the address box is https://cle-france.bell-computing.com/wp-login.php?redirect_to=https%3A%2F%2Fcle-france.bell-computing.com%2F
It tries to add /join-us/ giving https://cle-france.bell-computing.com/wp-login.php?redirect_to=https%3A%2F%2Fcle-france.bell-computing.com%2Fjoin-us%2FWhat DOES happen is if I login correctly I get taken to the Registration screen I set up. Is the ‘login’ parameter wrong?
If I change login to register and I have successfully logged in previously I get to the register page but am actually logged in too.
The page I need help with: [log in to see the link]
- The topic ‘Redirect registration not working’ is closed to new replies.