[wp-hackers] Flexible Installation Process

Ryan Boren ryan at boren.nu
Wed Nov 30 00:44:22 GMT 2005


On Tue, 2005-11-29 at 10:36 -0800, Trevor Turk wrote:
> --- Ryan Boren <ryan at boren.nu> wrote:
> 
> > For such semi-custom installs, we probably don't
> > want to tie our file
> > load to a locale.  It may make the most sense to
> > just load
> > wp-content/install-functions.php instead of digging
> > in the languages
> > directory.  install-functions.php will be used once,
> > at install time,
> > and thereafter will be useless.  It is a
> > prepackaged, one-shot item.
> 
> So, this is me trying to understand. I'd package my
> Wordpress with this "install-functions.php" file in
> the wp-content directory. It would contain all of the
> functions that I wanted run when Wordpress gets
> installed. I could leave the file there and not worry
> about it, since it would only run once. The creation
> of the db tables and the insert of the default post
> comment - would that still run? I guess the best thing
> would be to have a way to know each thing that is done
> on install, and then to have the option of doing it or
> not doing it. I don't know what all happens when you
> first install, but it's got to set the default
> options, too?

The parts we would make pluggable are the creation of the default
category, post, comment, page, and blogroll.  This happens after the db
schema is laid down and the options and roles are populated.  The custom
function could activate plugins and change options if it wanted too.

Ryan



More information about the wp-hackers mailing list