Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

share|improve this question
    
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 Dec 11 '12 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 Dec 11 '12 at 19:24

1 Answer 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.

share|improve this answer
    
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 Dec 12 '12 at 15:01
    
@James Glad I could help. Just wondering though. Why don't you accept the answer... –  marikamitsos Dec 15 '12 at 23:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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