MU-Plugin get user info
-
Hi all
I hope you can help
I have a multisite with a custom login which takes users to the root wp-admin by default which gives this error for those who do not have the correct permission.You attempted to access the “WordPress” dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the “WordPress” dashboard, please contact your network administrator.
I would like them to be redirected to the primary blog like this example.
https://www.ads-software.com/support/topic/automatic-redirection-to-child-site-from-main?replies=15
However, my custom plugin does not contain $current_user and none of the functions to get the current user work.
The other functions I have built work no problem, so I know there is nothing wrong with the file getting included.Any help would be much appreciated.
Thanks
Mark
- The topic ‘MU-Plugin get user info’ is closed to new replies.