Hey, guys
I need a bit of your attention here :)
I create a blogging system for one of my clients. All blog functionality is maintained by WPMU installation that uses subdomains for users' blogs.
And of course a bunch of themes and plugins is there ;)
The only different thing is signup. The client uses an e-shop script with affiliate program to track sales and referrers. 1 sale = creation of 1 blog and 1 user for this blog.
And here goes the question. What is the best way to create blogs and users by 3-rd party script?
I wanted to do that in quite straightforward way - check what tables are to be created in DB and make the script create them. But I feel that I can miss something important here and mess all the good stuff...
What function (WPMU function) should I use to create a new blog and a new user for this blog? Maybe this seems a dumb question, but I'm stuck with it.
Actually, after the sale is completed in e-shop I should call some function(s) of WPMU and pass variables (username, email, etc). All these variables are present in e-shop DB, so no questions here.
Everything I need to get some clue in is creation of blogs and user 'from outside'.
Waiting for some guidelines and thanks in advance :)