- This topic has 3 replies, 2 voices, and was last updated 9 years, 3 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Redirect url after registration completed
Tagged: redirect url, registration form
add_action(‘swpm_front_end_registration_complete’, ‘sam_after_registration_redirection’);
function sam_after_registration_redirection()
{
$url = ‘http://www.yourwebsite.com/thank-you/’;//TODO – Specify the URL that you want to redirect to
wp_redirect($url);
}
I am trying to redirect to my homepage after user submitted the registration form done. However, the above code is not working. I have put the code in functions.php, any things goes wrong? thanks in advance.
Did you add your home page URL in the following part of the code?
$url = ‘http://www.yourwebsite.com/thank-you/’;//TODO – Specify the URL that you want to redirect to
yes, I did.
Are you using a child theme? Or are you simply adding the code to your parent themes functions.php file? Can you enable Debug Mode and carry out another test? Then check the log files? Report back with any findings.
Thank you