• Hello I am the admin of our wordpress multisite,

    I would like to know if there is a way to redirect when someone enter the login page of any site to login page of the main site,

    For example, if someone enters the login page of this site (unte.blogs.usj.edu.lb/wp-login.php) I want it to be redirect to the login page of the main site (blogs.usj.edu.lb/wp-login.php)

    • This topic was modified 6 years, 2 months ago by Mario Gharib.
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You can use the ‘login_redirect’ filter. Hook it and return the desired URL. You will likely want to exclude certain users from this, like yourself. The logged in user is passed as the 3rd parameter to your callback, after the current destination and the original request.

Viewing 1 replies (of 1 total)
  • The topic ‘redirect logins of multisite to the main site’ is closed to new replies.