[wp-hackers] Activation hook exist for themes?
websweetweb at gmail.com
Mon Aug 31 21:44:41 UTC 2009
I went with Ozh's approach and it worked well. But still, a formal
method for this would be convenient and
give us some peace of mind. Who knows? Something may change in the next
version and this method may break.
Hope the core people are reading this thread.
Peter Westwood wrote:
> On 31 Aug 2009, at 00:46, Dion Hulse (dd32) wrote:
>> Theres a ticket, there was a messy patch from me(IIRC) but i dont
>> think its in core yet.
> This is what I was thinking of:
> When WordPress switches themes it fires the switch_theme action.
> Unfortunately this is run before the theme is active so is really more
> use as a deactivation hook.
More information about the wp-hackers