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 stop WP from creating the "Sample Page" and "Hello World!" post when creating a new blog?

share|improve this question

1 Answer 1

up vote 14 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

 
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.