Create site programmatically for WPMU

first create a user from this function

$user_id = wpmu_create_user( $username, $password, $email );

then used this function to create blog

wpmu_create_blog( $newdomain, $path, $title, $user_id , array( 'public' => 1 ), $current_site->id );

for detail you can see this file

/wp-admin/network/site-new.php

after viewing this page you will have the exact idea what you want to do.

Leave a Comment

404 Not Found

Not Found

The requested URL was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.