I guess I should have did more research before writing my log-in form. I am creating a widget for my blogs that will not just let a user sign in but also creates a form to let them sign up for the blog. I don't want to send someone back to the main blog. I just want to add the user to the current blog. I am requiring additional info so I trust who makes it this far.
All of my blogs are actually separate 'sites' that I want to keep separate. I thought I was going down the right path with wpmu_validate_user_signup ($user_name, $user_email) and wpmu_create_user ( $user_name, $password, $email) and add_user_to_blog ( $blog_id, $user_id, $role ) but starting with the validation I am getting this in my php code:
Fatal error: Call to undefined function username_exists() in /home/content/r/e/a/realsol/html/wp-includes/wpmu-functions.php on line 886
I just want a simple sign-up procedure. I am surprised there isn't already a plug-in that allows this.
Please help. 200 lines of code and no where to go.
Thanks.