Auto create pages on WordPress multi site register

I’m creating a multi site and would like to have:

  1. A few pages that are automatically created with the new site (at the moment only the default home and sample page are created with a new site, anyone know how that is being done?)

    Read More
  2. Even better but maby separate, a way to create pages in a form (on the register form or otherwise)

so that means optimally i want 4 pages (with content) made when a site is registered, and then a form asking them for the titles of 2 more pages that get created.

answers or ideas for either much appreciated!

Related posts

Leave a Reply

1 comment

  1. Not sure about multisite, however it usually works similarly to single site, so the following info may be useful:

    There is a pluggable function (ie you write your own which will run instead of wp’s function)

    “wp_install_defaults”

    Put your function in a ‘dropin’ plugin for install.php

    and wp will use your function to create defaults instead of the wp defaults.

    More info see:

    Repeatable configuration package
    http://hakre.wordpress.com/2010/05/01/must-use-and-drop-ins-plugins/