3

Is it possible to automatically run the WP Importer when creating a new site in WordPress Multisite?

I think this would need to be a function that runs when wpmu_new_blog is called but can't find anything that's helped.

2
  • What do you mean: open the Import page or run an automated import function? If the later, where would the import file come from?
    – brasofilo
    Commented Dec 11, 2012 at 18:01
  • I believe he means runs during install, this is a question I would love to figure out if I had the time, I would start with the WordPress Importer plugin which can be found here (mirror) , github.com/crowdfavorite/mirror-wp-wordpress-importer/blob/…
    – Wyck
    Commented Dec 11, 2012 at 19:24

1 Answer 1

1

Since this is for a multisite (the same and NOT a different wordpress installation), would any of these plugins give a solution to your question?

New Blog Defaults

It is a mu-plugin and has been around for some time (I have tried it myself and works just fine). Under "Bonus Settings" you are provided with options to customize the first post, the sample page, the first comments, the links, etc. All the settings filled under the plugin's options will be applied to all new blogs/sites created after the plugin is installed.

Default Blog

This one uses a different approach. You have to create a "default", "sample" blog/site first. Please have a look at the screenshots. It looks pretty easy to follow. Never tried it though.

2
  • The Default Blog plugin did the job nicely. Don't use the WP.org version (buggy / security vulnerability), get the Github version which is more up to date (though in Alpha).
    – James
    Commented Dec 12, 2012 at 15:01
  • @James Glad I could help. Just wondering though. Why don't you accept the answer... Commented Dec 15, 2012 at 23:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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