WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to stop WP from creating the "Sample Page" and "Hello World!" post when creating a new blog?

share|improve this question
up vote 17 down vote accepted

Create a file install.php in your wp-content directory. In that file you declare the wp_install_defaults() function. If you just leave that function empty no default categories, links, posts or pages will be created.

The default (pluggable) wp_install_defaults() function can be found in wp-admin/includes/upgrade.php.

Also see: http://stackoverflow.com/questions/550086/how-to-delete-the-default-hello-world-post-before-wordpress-install

share|improve this answer
Thank you! Do you have an idea to solve the problem with WP Multisite? After adding the install.php in the wp-content directory I get a 500 Error when creating new site. – user1706680 Nov 7 '12 at 18:55
Sorry, ignore my comment—the 500 Error was caused by something else! Also works for Multisite! – user1706680 Nov 7 '12 at 19:22

Your Answer


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.