A short plugin to delete the sample content (post, comment and page) from a newly created multisite site.
I use a WordPress Multisite installation to develop client sites and to experiment with themes and code. After creating each new site I immediately delete the “Hello World!” post, the demo comment and the “Sample Page” page.
Deleting the sample content takes quite a few clicks so I decided to look into how to automate the deletion of it.
The ‘wpmu_new_blog‘ action fires immediately after a new site is created. From looking at sites I had created I knew IDs of the post, comment and page so I could hard code them into the code. The code is short and simple.
This plugin is installed on my multisite installation and Network Activated and does its one job well.