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?


this would do the trick? http://codex.wordpress.org/WPMU_Functions/wpmu_create_blog

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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