[wp-hackers] Activation hook exist for themes?

Frank Bueltge frank at bueltge.de
Mon Aug 31 07:07:46 UTC 2009


+100
I think, it si very important to include the hook-structure of plugins
to de- and activate for themes. many themes use options and settings,
its was very nice and cleaner for install options for the theme in the
database.

http://bueltge.de : frank at bueltge.de
http://wpengineer.com : frank at wpengineer.com
__



On Mon, Aug 31, 2009 at 1:46 AM, Dion Hulse (dd32)<wordpress at dd32.id.au> wrote:
> Theres a ticket, there was a messy patch from me(IIRC) but i dont think its
> in core yet.
>
> On Mon, 31 Aug 2009 02:52:32 +1000, Peter Westwood
> <peter.westwood at ftwr.co.uk> wrote:
>
>> I'm pretty sure we have theme activation hooks now but I'm not near my
>> pc to check.
>>
>> --
>> Peter Westwood
>> http://peter.westwood.name
>>
>> On 30 Aug 2009, at 13:13, Ozh <ozh at planetozh.com> wrote:
>>
>>> Last time I checked there was no such hook
>>>
>>> A simple workaround is:
>>> if ( is_admin() && isset($_GET['activated'] ) && $pagenow ==
>>> "themes.php" ) {
>>>  // do your stuff
>>> }
>>>
>>> On Sun, Aug 30, 2009 at 2:08 PM, rajasekharan<websweetweb at gmail.com>
>>> wrote:
>>>>
>>>> Similar to register_activation_hook for plugins, do activation
>>>> hooks exist
>>>> for a themes in wordpress?
>>>>
>>>
>>>
>>>
>>> --
>>> http://planetOzh.com ~ Blog and WordPress Stuff
>>> http://FrenchFragFactory.net ~ Daily Quake News
>>> _______________________________________________
>>> wp-hackers mailing list
>>> wp-hackers at lists.automattic.com
>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>
>
> --
> --
> Dion Hulse
> e: contact at dd32.id.au
> w: http://dd32.id.au/
> m: 04 6621 9112 (+614 6621 9112)
> WordPressQI: http://wordpressqi.com/
> _______________________________________________
> 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