Support » Networking WordPress » Trying Export All sites in a multisite

  • Hi,

    I am trying to export all the sites in my multisite installation, I wrote a function that loops through the blogs and does the below,

    require_once( ABSPATH . ‘wp-admin/includes/export.php’ );
    switch_to_blog($blogid);
    $args = array(
    ‘content’ => ‘all’,
    );
    export_wp($args);

    This used to work. Now it doesn’t work, Any idea how to fix it?
    Right now it open the content in a browser rather a downloading to an XML file.

    Thanks
    Manoj

    • This topic was modified 1 month, 2 weeks ago by  Jan Dembowski. Reason: Moved to Networking WordPress

    The page I need help with: [log in to see the link]

  • You must be logged in to reply to this topic.