Login Page Redirect
-
Your plugin is working very well. I had a very small annoyance that was easily resolved by adding the code below. Let me explain.
It is great to have a user login and return to the page that initiated the login process. HOWEVER, what if that page is the login page itself? They are logged in with a login screen in front of them. This can be a little confusing.
The following will redirect the user to the homepage if they attempt to go to the login page while already logged in.
//* Eddie - Redirect page if they are already logged in // Replace 000 with the page_id for your login page. function redirect_login_page() { if (get_the_ID() == 000 && is_user_logged_in()) { wp_redirect('https://samurai.io'); exit; } } add_action( 'wp', 'redirect_login_page');Maybe you can add this to a future version since it makes the user experience less confusing in my opinion.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Login Page Redirect’ is closed to new replies.