I hope someone can help... This works manually I just cant figure out what I am doing wrong when I try to automate.
I am using the Multi-site setup.
I have a main blog...which I am using as a website where people can signup. When they signup they will get a blog of their own. Then I want the blog owners to be able to add members to their site through my plugin WITHOUT using the WordPress interface.
I want Child Blog A to add users to Child Blog A only
I want Child Blog B to add users to Child Blog B only..etc
I do not want Users of Child Blog B to be able to login to Child Blog A and visa versa.
Now from the control panel of my Main blog, I can select Child Blog A and add a user to Child Blog A.. User of ChildBlogA User can log in and see the menus etc that I have setup. This all works manually when I do it from the admin panel...but...
When I try to automate I get an error when the user logs in that he does not have enough security..
To recap, when I add a user manually to Child Blog A and only CHild Blog A, it works, the user can log in as expected.
When I add a user through my plugin the user cannot log in.
I get the feeling that I am missing something but for the life of me I cannot figure it out.
missing and where am I going wrong...