I would like to know if there’s a way to populate a WordPress site with some dummy content while installation process is going on. Let’s say a few sample pages, a fews posts, taxonomy and that’s it.

I’m not sure if this is possible since I haven’t found proper documentation.

3 s
3

Searching for another thing, just stumbled upon this gem by @anmari 🙂

You have to put a Dropin plugin at the root of wp-content.

Should be named install.php and contain a new version of the pluggable function wp_install_defaults.

I used this gist for testing. And the only modification from the original function is the default category name and slug.

There’s a similar Q&A at StackOverflow and Michael notice is worth copying:

Since a default category of some kind is assumed, it’s a good idea to create a least one category

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *