I install WordPress many times and have to delete the hello world post manually after each install. This is daunting !
How can I prevent this post to appear. Same question for blogroll links.
Thanks.w
I install WordPress many times and have to delete the hello world post manually after each install. This is daunting !
How can I prevent this post to appear. Same question for blogroll links.
Thanks.w
You must be logged in to post a comment.
In the
wp-content
folder, define a file calledinstall.php
, and in that put awp_install_default
function. Since a default category of some kind is assumed, it’s a good idea to create a least one category (code example derived from/wp-admin/includes/upgrade.php
):You could remove the code that creates the initial post and comment in
wp-admin/includes/upgrade.php
, but it seems to me that any solution is going to be more time consuming (upgrades etc.) than just hitting ‘delete’ once per installation…In version 2.7.1, these items are created in wp_install_defaults() of /wp-admin/includes/upgrade.php.
It doesn’t return any values, so you should be safe just commenting or removing the contents of the function. Or you could comment out the only call to it on line 70.
Keep in mind this is NOT upgrade proof – you will probably have to do this again if you upgrade your version of WP