Welcome to the Treehouse Community
Looking to learn something new?
Susan Siow6,497 Points
Login Redirection to Current Page Snippet
Does anyone has a function snippet which can redirect WP users to their current viewing page when they are login?
Mike Bronner16,395 Points
<?php wp_redirect( $location, $status ); exit; ?>
As long as you know what page they need to be redirected to, this should do that.