Private page protected with username and password
So here’s what we’re trying to do: IF A user logs in and is of a specific role ( Subscriber ) then redirect them to a specific page. IF A user tries to reach the admin panel, redirect them to a specific page. We’re going to use 3 hooks for the above problems: login_redirect – … Read more