[wp-hackers] Custom default settings at install
mikeschinkel at newclarity.net
Wed Jun 10 06:31:49 GMT 2009
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?
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
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
More information about the wp-hackers