Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Sorry for the slow reply. If your your login form uses wp-login.php to handle login requests, you can use the filter ‘login_redirect’ to redirect users where ever after login. Your filter callback can check roles of the current user and redirect admins to /wp-admin/ while all others are sent to the home page. Thus, should an admin end up using the form for what ever reason, their login will still be correctly handled.

    If your login page uses another process besides wp-login.php, how to redirect would depend on that process. In this case, whoever developed the login process would be in the best position to answer your question.

Viewing 1 replies (of 1 total)
  • The topic ‘I’m having trouble with redirect after the link.’ is closed to new replies.