Populate content on install

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

Leave a Comment

deneme bonusu veren sitelerbahis casinomakrobetceltabetpinbahispolobetpolobet girişpinbahis girişmakrobet girişpulibet girişmobilbahis girişkolaybet giriş