Is it possible to stop WP from creating the “Sample Page” and “Hello World!” post when creating a new blog?
Leave a Reply
You must be logged in to post a comment.
Is it possible to stop WP from creating the “Sample Page” and “Hello World!” post when creating a new blog?
You must be logged in to post a comment.
If you’re using Multisite
The accepted answer is destructive in that it cancels all other set-up items in the overridden function. A less destructive way to do it for multisite installs is to delete the default content during new blog creation by hooking in to
wpmu_new_blog
Create a file
install.php
in yourwp-content
directory. In that file you declare thewp_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 inwp-admin/includes/upgrade.php
.Also see: https://stackoverflow.com/questions/550086/how-to-delete-the-default-hello-world-post-before-wordpress-install