User redirect to destination URL after login
I did something similar recently. 1. If the user is not logged in I captured the desired/destination page’s URL and added it as a query arg to the login page’s URL. 2. Redirect the user to the login page. function wpa_59205_redirect(){ global $post; if ( ! is_user_logged_in() ) { // this will tack on the … Read more