WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Multisite where I'm creating a user from a PHP file, using the code below:

define('WP_USE_THEMES', false); 
require_once (dirname (dirname (__FILE__)) . '/mygroup/wp-blog-header.php'); 
require_once (dirname (dirname (__FILE__)) . '/mygroup/wp-includes');

$user_id = wp_create_user($org_username, $org_password, $org_email);

Now, how would I create a blog for the same user?

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.