August 7, 2015 at 9:02 am
#14028
Syam Mohan
Keymaster
if(is_user_logged_in())
wp_redirect(apply_filters(‘login_redirect’, ‘/’));
else
wp_redirect(‘/wp-login.php’);
I did not test the code, just wrote it here. Let me know if it doesn’t work.
Thanks
Syam