[wp-hackers] Flexible Installation Process

Douglas Daulton apakuni at gmail.com
Wed Nov 30 03:53:10 GMT 2005

Would we want an example template for module devs so they could make their
modules "install-function" ready?  Or, would the current module
install/activation/config mechanisms suffice?

Does that make sense?


On 11/29/05 4:44 PM, "Ryan Boren" <ryan at boren.nu> wrote:

> 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
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list