redirect users to the login page
Add redirect_to as a query variable in your link whenever you redirect user wp-login.php. Like wp_redirect(‘http://…../wp-login.php?redirect_to=your_previous_page_link’, 302); In redirect_to write the link of any page.