[wp-hackers] do_action('activate_theme')?
Ozh
ozh at planetozh.com
Fri Sep 26 21:09:04 GMT 2008
On Fri, Sep 26, 2008 at 10:16 PM, Otto <otto at ottodestruct.com> wrote:
> A theme's functions.php could test for deactivation by knowing it's
> own theme name and watching for the switch_theme action. When it gets
> triggered to switch to something else, there you go.
>
> A theme should be able to notice when it gets activated by testing for
> both the cases of (isset($_GET['activated']) && $parent_file ==
> "themes.php").
>
I had the switch_theme test on deactivation but was hoping that I had
missed something obvious and more simple. Thanks for the reply Otto.
--
http://planetOzh.com ~ Blog and WordPress Stuff
http://FrenchFragFactory.net ~ Daily Quake News
More information about the wp-hackers
mailing list