|
View:
New views
12 Messages
—
Rating Filter:
Alert me
|
|
|
Custom default settings at installHi 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? Thank you Karl Wångstedt ---------------------------------- Wångstedt nova www.wangstedt.net Karl Wångstedt 0278-61 12 33 Stenhuggarvägen 3g 070-578 13 04 821 41 BOLLNÄS ---------------------------------- Det här brevet skickades med en Macintosh från Apple. Garanterat virusfri med Mac OS X. _______________________________________________ wp-hackers mailing list wp-hackers@... http://lists.automattic.com/mailman/listinfo/wp-hackers |
|
|
Re: Custom default settings at installOn 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@... http://lists.automattic.com/mailman/listinfo/wp-hackers |
|
|
Re: Custom default settings at installor you set the settings via a plugin after the install. On this way it
is easy to save the default settings and it is possible to reset to this settings. Best regards Frank __ Das Buch: WordPress - Weblogs einrichten und administrieren, Open Source Press ISBN 978-3-937514-33-8 http://wordpress-buch.bueltge.de/das-buch/ http://bueltge.de : frank@... http://wpengineer.com : frank@... __ Frank Bültge Tel: +49 36428 122529 Mobil: +49 170 5322053 E-Mail: f.bueltge@... Inpsyde GmbH Mutzer Heide 3 51467 Bergisch Gladbach Steuernr: 204/5756/0999 Steueridentnr.: DE263849534 Geschäftsführender Gesellschafter: Heinz Rohé HRB 65224 Amtsgericht Köln http://inpsyde.com http://pressthis.de On Tue, Jun 9, 2009 at 8:26 PM, Peter Westwood<peter.westwood@...> wrote: > > 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@... > http://lists.automattic.com/mailman/listinfo/wp-hackers > wp-hackers mailing list wp-hackers@... http://lists.automattic.com/mailman/listinfo/wp-hackers |
|
|
Re: Custom default settings at installOn Jun 9, 2009, at 1:20 PM, Karl Wångstedt wrote: > I wonder if there is an easy way to change the default settings WP > inserts into the DB at install? Why Yes, you can. :) <http://wpbits.wordpress.com/2007/08/10/automating-wordpress-customizations-the-installphp-way/ > Stephen -- Stephen Rider http://striderweb.com/ _______________________________________________ wp-hackers mailing list wp-hackers@... http://lists.automattic.com/mailman/listinfo/wp-hackers |
|
|
Re: Custom default settings at installand the plugin way :)
I think, its a litlle bid simple wy. http://wpbits.wordpress.com/2007/08/09/automating-wordpress-customizations-the-plugin-way/ On Tue, Jun 9, 2009 at 9:16 PM, Stephen Rider<wp-hackers@...> wrote: > > On Jun 9, 2009, at 1:20 PM, Karl Wångstedt wrote: > >> I wonder if there is an easy way to change the default settings WP inserts >> into the DB at install? > > Why Yes, you can. :) > > <http://wpbits.wordpress.com/2007/08/10/automating-wordpress-customizations-the-installphp-way/> > > Stephen > > > -- > Stephen Rider > http://striderweb.com/ > > > > > _______________________________________________ > wp-hackers mailing list > wp-hackers@... > http://lists.automattic.com/mailman/listinfo/wp-hackers > wp-hackers mailing list wp-hackers@... http://lists.automattic.com/mailman/listinfo/wp-hackers |
|
|
Re: Custom default settings at installPeter,
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@...> To: wp-hackers@... 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@... http://lists.automattic.com/mailman/listinfo/wp-hackers _______________________________________________ wp-hackers mailing list wp-hackers@... http://lists.automattic.com/mailman/listinfo/wp-hackers |
|
|
Re: Custom default settings at installOn 10 Jun 2009, at 07:31, Mike Schinkel wrote: > 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? For a custom distribution. At it happens at install time it's not relevant to plugins/themes as neither could be active. 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@... http://lists.automattic.com/mailman/listinfo/wp-hackers |
|
|
Re: Custom default settings at install> On 10 Jun 2009, at 07:31, Mike Schinkel wrote:
> >> 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? > > For a custom distribution. > > At it happens at install time it's not relevant to plugins/themes as > neither could be active. With WP.org and WP-MU merging, is there an impact to using install.php for custom distribs? - Eric Marden __________________________________ http://xentek.net/code/wordpress/ _______________________________________________ wp-hackers mailing list wp-hackers@... http://lists.automattic.com/mailman/listinfo/wp-hackers |
|
|
Re: Custom default settings at installOn 10 Jun 2009, at 08:09, Eric Marden wrote: >> On 10 Jun 2009, at 07:31, Mike Schinkel wrote: >> >>> 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? >> >> For a custom distribution. >> >> At it happens at install time it's not relevant to plugins/themes >> as neither could be active. > > With WP.org and WP-MU merging, is there an impact to using > install.php for custom distribs? > Not sure I understand the question, but WP-MU supports the same type on custom defaults override. 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@... http://lists.automattic.com/mailman/listinfo/wp-hackers |
|
|
Re: Custom default settings at install> 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? http://wpbits.wordpress.com/2007/08/10/automating-wordpress-customizations-the-installphp-way/> _______________________________________________ wp-hackers mailing list wp-hackers@... http://lists.automattic.com/mailman/listinfo/wp-hackers |
|
|
Re: Custom default settings at installOn Jun 10, 2009, at 3:26 AM, Peter Westwood wrote:
> > On 10 Jun 2009, at 08:09, Eric Marden wrote: > >>> On 10 Jun 2009, at 07:31, Mike Schinkel wrote: >>> >>>> 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? >>> >>> For a custom distribution. >>> >>> At it happens at install time it's not relevant to plugins/themes >>> as neither could be active. >> >> With WP.org and WP-MU merging, is there an impact to using >> install.php for custom distribs? >> > > Not sure I understand the question, but WP-MU supports the same type > on custom defaults override. > > westi I mean, doesn't WPMU ship with an install file, that wp.org does not. I gather that the mechanism that MU uses is the one we've been talking about in this thread. My question was, I guess, Does this impact that in anyway? - Eric Marden __________________________________ http://xentek.net/code/wordpress/ _______________________________________________ wp-hackers mailing list wp-hackers@... http://lists.automattic.com/mailman/listinfo/wp-hackers |
|
|
Re: Custom default settings at install"Peter Westwood" <peter.westwood@...> wrote:
> Not sure I understand the question, but WP-MU supports the same > type on custom defaults override. Rather than clarify this pretty much answered my question: http://wpbits.wordpress.com/2007/08/10/automating-wordpress-customizations-the-installphp-way/ -Mike Schinkel Custom Wordpress Plugins http://mikeschinkel.com/custom-wordpress-plugins _______________________________________________ wp-hackers mailing list wp-hackers@... http://lists.automattic.com/mailman/listinfo/wp-hackers |
| Free embeddable forum powered by Nabble | Forum Help |