Redirects to /wp-admin
-
Love the plugin, it worked well for a bit but now it redirects customers to /wp-admin when trying to log in – when they should be redirected to the homepage, even though I have the following code enabled:
// Redirect logged-in users to the homepage after login
add_filter(‘login_redirect’, ‘custom_login_redirect’, 10, 3);
function custom_login_redirect($redirect_to, $request, $user) {
// Redirect all users to the homepage after login
return home_url(‘/’);
}Any ideas what could be the issue?
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Redirects to /wp-admin’ is closed to new replies.