[wp-hackers] Flexible Installation Process

Trevor Turk trevorturk at yahoo.com
Tue Nov 29 18:36:55 GMT 2005


--- 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?

- Trevor


More information about the wp-hackers mailing list