It was suggested:
https://codex.wordpress.org/Plugin_API/Filter_Reference/registration_redirect
But I tried:
add_filter( ‘registration_redirect’, ‘my_redirect_home’ );
function my_redirect_home( $registration_redirect ) {
return ‘https://www.publictalksoftware.co.uk/registration-complete’;
}
I used the “Snippets” plugin and it did not seem to work.
This works:
// Redirect Registration Page
function my_registration_page_redirect()
{
global $pagenow;
// Standard Registration Redirect
if ( (strtolower($pagenow) == 'wp-login.php') && (strtolower($_GET['action']) == 'register') ) {
wp_redirect( home_url('/register/') );
}
// Redirection after successful registration
if ( (strtolower($pagenow) == 'wp-login.php') && (strtolower($_GET['checkemail']) == 'registered') ) {
wp_redirect( home_url('/registration-complete/') );
}
}
add_filter( 'init', 'my_registration_page_redirect' );
@ajtruckle Sorry for the dumb question, but which functions file did you paste this into?
I have been looking everywhere for a solution to this seemingly simple problem, but none of the plugins I have tried seem to work. I’m very hopeful about this one!
Hi @ericsims
You should use a child theme, and then, have your functions file in the child theme folder. That is all you need to do.
Hallelujah, it worked! Thank you so much!! I ended up using the Code Snippets plugin because I’m not super comfortable with php, child themes, etc.
Great! I also use Code Snippets for some things too. Well done.
Hi, I think I am over my head with forum/registration. Any user other than myself has to first register in order to make comments on the forum. When, they click “register”, there is no page set up for it.
So, I believe I am a few steps away.
1. Need to set up registration page.
2. One they fill in the registration page, it needs to communicate that to the forum.
3. Once that is communicated to the forum, they new user needs to be able make comments.
If anyone takes my issue on, it may be more of a commitment than you would want.
Thank you very very much,
Justephen
Just use “Theme my Login”. It does everything.
Where do I find “Theme my Login”?
Sorry, here is my site. http://www.justephen.com
Here:
Theme My Login
You can install it from there.
Thank you. I actually found it and installed and activated it. As I understand it, once activated it should add about six more pages to my site. Login, Registration, Password etc. None of those loaded. It did say, when I added plug in that the newest version has not been tested.
Thanks
You create those pages. Each page has a short code it in. You then tell Theme My Login the links to each of those pages.
Hi there,
I have installed TML plugin and set up all links, but i still not received any email notifications after subscriptions tests ! I tried to search for the email settings but didnt found any tab . What did i miss ??
Thx for your help
Thank u so much for taking time to help.