Redirect after logging in
-
Hi,
I was wondering if you could help me with redirection after logging in or give me an advice. When customer is logged in, it goes always towards the home page, not sure if this is the plugin’s behaviour.
I added below function, but it’s not making any changes:
if ( (isset($_GET['action']) && $_GET['action'] != 'logout') || (isset($_POST['login_location']) && !empty($_POST['login_location'])) ) { add_filter('login_redirect', 'my_login_redirect', 10, 3); function my_login_redirect() { $location = $_SERVER['HTTP_REFERER']; wp_safe_redirect($location); exit(); } }
Looking forward to your support.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Redirect after logging in’ is closed to new replies.