• thecreator01

    (@thecreator01)


    Hello, when a subsite user logs in from the main site, they are directed to their subsite admin panel. (mainsite.com/subsite/wp-admin)

    However, when the user visits the mainsite/wp-login.php page again after logging in, he encounters a WordPress warning page indicating that he does not have access to this page. How can I redirect subsite users to their own subsite admin panel when they try to access the main site and another subsite admin panel after logging in? (Screenshot attached.) or can I customize this warning page?

    https://prnt.sc/2DPECThfGcPt

Viewing 1 replies (of 1 total)
  • threadi

    (@threadi)

    The text displayed is contained in the WordPress language files. You can adapt these with a plugin such as Loco Translate: https://www.ads-software.com/plugins/loco-translate/

    The pages to which the user has access are listed below the text. I assume your wish is to have an automatic redirect here instead of displaying this text? Then the question would be: what if the user is assigned to 2 pages? In this case, no forwarding destination would be possible, which is why this text is displayed as a hint.

    Your request for a redirect would probably only be possible with individual programming. The starting point could be the hook “admin_page_access_denied”: https://developer.www.ads-software.com/reference/hooks/admin_page_access_denied/

Viewing 1 replies (of 1 total)
  • The topic ‘Subsite users and redirection to login page’ is closed to new replies.