https://hamar-tennis.no/wp-login.php?oa_social_login_source=login
but instead I would like it to go to the default registration page for Wordpress: https://hamar-tennis.no/wp-login.php?action=register
//Disable registrations using Social Login
function oa_social_login_disable_registrations ($email)
{
if ( ! email_exists ($email))
{
wp_redirect ('https://hamar-tennis.no/wp-login.php?action=register');
exit();
}
return $email;
}
//This filter will be applied when new users are registering using social login
add_filter('oa_social_login_filter_new_user_email', 'oa_social_login_disable_registrations');
Please sign in to your OneAll account to ask a new question or to contribute to the discussions.
Please click on the link below to connect to the forum with your OneAll account.
Answers
exit();
so after adding this code afterwp_redirect ('https://hamar-tennis.no/wp-login.php?action=register');
it's now working! Thank you :-)I'm glad to hear that it works now!