Change redirect when already logged in
-
Would it be possible to change the functionality of the plugin if a user goes to the new login url but is already logged in? Currently it sends all users to wp-admin, but this is not helpful for non administrators.
I have hacked the code at line 447 in plugin.php to redirect to home if not admin and wondered whether this could be incorporated into the next release?
if ( is_user_logged_in() && ! isset( $_REQUEST['action'] ) ) { if(is_admin()) { wp_safe_redirect( admin_url() ); } else { wp_safe_redirect('/'); } die(); }
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Change redirect when already logged in’ is closed to new replies.