Log in Sign up
Discussion WordPress

Redirecting all non-admin users to the homepage upon login.

Alex Woo
Alex Woo
0 reputation
4 weeks ago 160 views 3 replies
I've been researching this for a while but would love to hear your experiences.

Question: Redirecting all non-admin users to the homepage upon login.

2 Replies

Sophie Shopper
Sophie Shopper · 4 weeks ago
Use the `login_redirect` filter in functions.php.
Sarah Designer
Sarah Designer · 4 weeks ago
Make sure to return the URL, not echo it, or headers will fail.

You must be logged in to reply.

Log In to Reply