[wp-hackers] automatically create a new page with plugin upon installation

Robin Adrianse robin.adr at gmail.com
Thu Oct 18 19:19:29 GMT 2007


Yeah, K2 (getk2.com) does this.

I believe the practice is to hook into the plugin_activation-{filename} hook
(or whatever it's called) and check to see if it's a first-time
installation, then wp_insert_post().

On 10/18/07, Ozh <ozh at planetozh.com> wrote:
>
> As far as I remember, theme kubrick2 does this (creates an archive
> page with a particular template I think)
>
> On 10/18/07, Burobjorn <burobjorn at gmail.com> wrote:
> > Hi,
> >
> > I want my (WPMU) plugin to automatically create a page with a specific
> > theme in the main blog upon installation. I recall seeing this been done
> > by another (wp or wpmu) plugin, but I can't remember which one nor how
> > it did this. I was wondering if someone could point me in the right
> > direction in order to do this either for WP or WPMU.
> >
> > Thanks in advance,
> >
> > All the best,
> >
> > grtz
> > BjornW
> >
> > --
> >
> > met vriendelijke groet,
> > Bjorn Wijers
> >
> > * b u r o b j o r n .nl *
> > digitaal vakmanschap | digital craftsmanship
> >
> > Concordiastraat 68-114
> > 3551 EM Utrecht
> > The Netherlands
> >
> > phone: +31 30 2444 101
> > http://www.burobjorn.nl
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
>
>
> --
> http://FrenchFragFactory.net ~ Daily Quake News
> http://planetOzh.com ~ Blog and WordPress Stuff
> _______________________________________________
> 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