[wp-hackers] Activation hook exist for themes?

Peter Westwood peter.westwood at ftwr.co.uk
Mon Aug 31 20:44:12 UTC 2009

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.

Peter Westwood
http://blog.ftwr.co.uk | http://westi.wordpress.com
C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5

More information about the wp-hackers mailing list