Redirect after login
-
When a member logs in successfully, I want him to be redirected to the members home page. I put this code into the theme functions.php file, but it did not work.
add_filter( ‘wpmem_login_redirect’, ‘my_login_redirect’ );
function my_login_redirect()
{
// return the url that the login should redirect to
return ‘http://mywebsite/members-home-page/ ‘;
}
The topic ‘Redirect after login’ is closed to new replies.