[wp-hackers] Custom default settings at install

Mike Schinkel mikeschinkel at newclarity.net
Wed Jun 10 06:31:49 GMT 2009


Peter,

What's the use case for install.php in WP_CONTENT_DIR?  It's not for a plugin or for a theme, right?  Would it be for a custom distribution of WordPress?

-Mike Schinkel
Custom Wordpress Plugins
http://mikeschinkel.com/custom-wordpress-plugins

----- Original Message -----
From: "Peter Westwood" <peter.westwood at ftwr.co.uk>
To: wp-hackers at lists.automattic.com
Sent: Tuesday, June 9, 2009 2:26:05 PM GMT -05:00 US/Canada Eastern
Subject: Re: [wp-hackers] Custom default settings at install


On 9 Jun 2009, at 19:20, Karl Wångstedt wrote:

> Hi all
>
> I wonder if there is an easy way to change the default settings WP  
> inserts into the DB at install?
>
> Can I perhaps hook into the install process at some point with an  
> array of settings from some custom script?
>

Place a file called install.php in WP_CONTENT_DIR

Define a function called wp_install_defaults() in that file.

Add whatever defaults you want

westi
-- 
Peter Westwood
http://blog.ftwr.co.uk | http://westi.wordpress.com
C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5

_______________________________________________
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