• hello
    I have a multisite where i am creating a user from a php file by using the below given code…

    define('WP_USE_THEMES', false);
    require_once (dirname (dirname (__FILE__)) . '/mygroup/wp-blog-header.php');
    require_once (dirname (dirname (__FILE__)) . '/mygroup/wp-includes
    
    $org_username=$_SESSION['user_name'];
    $org_password=$_SESSION['org_password'];
    $org_email=$_SESSION['org_email'];
    $user_id = wp_create_user($org_username, $org_password, $org_email) ;

    Now I want to create a blog for the same user.
    How Do I do that?

    thanks in advance

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Alvaro

    (@nicardo)

    Any Help???

    Rishi

    (@errishisolankigmailcom)

    I am also looking for this..

    Thread Starter Alvaro

    (@nicardo)

    Still looking for the solution

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Please don’t bump. If no one’s answered, it’s because no one knows. In this case, it’s probably because no one trying to do this. You may want to, instead of reinventing the wheel, look at a way to port the user info (which IIRC you are calling from a separate app) over to pre-populate the standard WordPress blog creation page.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘creating new blog using php’ is closed to new replies.