WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Custom default installation (7 posts)

  1. mikesmobile
    Member
    Posted 5 years ago #

    I need to customize the default WP installation. For example, I would like to create a few categories, posts, and pages created upon installation. I found this post on the WordPress MU website, "Change default category and post", but I couldn't find the appropriate file for the regular WP install. I found a few lines of code in the /includes/upgrade.php file that appear to be where I want to start (look towards line 60).

    Does anyone have any suggestions as to where I might find some documentation on this? Is the /includes/upgrade.php file a good start?

    Best wishes!

  2. MichaelH
    Member
    Posted 5 years ago #

    Yes, the data created in a WordPress installation is a result of code in wp-admin/includes/upgrade.php

  3. mikesmobile
    Member
    Posted 5 years ago #

    Thank you MichaelH. You've been a lot of help lately :-)

  4. mikesmobile
    Member
    Posted 5 years ago #

    MichaelH. Is there some documentation available that might provide some instruction on customizing the upgrade.php file?

  5. MichaelH
    Member
    Posted 5 years ago #

    No there is not any that I know of but just using the existing INSERTs in that script should make it easy for you to create additional posts, pages, and categories.

  6. mikesmobile
    Member
    Posted 5 years ago #

    Perfect. Thank you.

  7. John Turner
    Member
    Posted 5 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic