User post login Not working
-
Hello,
I have setup the Post login redirects as you can see in screenshot
I tried the Hooks as per your great documentation
`// If your function ‘your_function_name’ exists outside of PHP class
add_action(‘mo_oauth_redirect_oauth_users’, ‘your_function_name’ , 10, 1);// Function Definition
function your_function_name( $after_login_url ) {
// $after_login_url : contains url to be redirected to after login
return “/dashboard/”;
}But it always redirected to main site.
I tried to disable all plugins and themes still nothing. I tried wp_login and nothing. in wp_login hook there is no user logged in.
Kindly tell me what to do with this.
Best regards,
Ibrar
The topic ‘User post login Not working’ is closed to new replies.