Hi @champsupertramp
I have found the cause which was a custom function in our theme related to redirecting the user after registration.
– The user wasn unable to login which is correct
– The user wasn’t redirected as per our admin settings
The issue we had was the setting to redirect the user to a URL was not working in the plugin so we created the below
/**
* Redirect after registration
**/
add_action( 'um_registration_complete', 'iuk_registration_complete', 10, 2 );
function iuk_registration_complete( $user_id, $args ) {
// Get the custom thank you page url from the theme settings
$url = get_field('registration_redirect_page', 'option');
// Redirect the user to the custom thank you page
wp_redirect( $url );
// Stop execution to prevent the page loading for any reason
exit;
}
Disabling this, it works fine but the redirect doesn’t work.
So the next question is, how can we redirect the user to our given URL without breaking the user registration/approval?
-
This reply was modified 4 years, 11 months ago by yst14.