[wp-trac] [WordPress Trac] #7795: Activate and Deactivate Theme hooks
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 15 11:18:25 UTC 2012
#7795: Activate and Deactivate Theme hooks
-------------------------+-----------------------------
Reporter: jacobsantos | Owner:
Type: enhancement | Status: assigned
Priority: normal | Milestone: Future Release
Component: Themes | Version: 2.7
Severity: normal | Resolution:
Keywords: revert |
-------------------------+-----------------------------
Comment (by CreativeInfusion):
Sorry if I've misunderstood (my first comment here), but hasn't this been
resolved first in WP 3.3 by scribu
[http://core.trac.wordpress.org/ticket/17979#comment:83 [17979]] and then
patched by [http://core.trac.wordpress.org/ticket/20334 [20334]] in WP
3.4?
The activation hook after_switch_theme is referenced in the in the codex
[http://codex.wordpress.org/Function_Reference/register_post_type#Flushing_Rewrite_on_Activation
register_post_type] so I presume it's supposed to be used (I hope so as
I've started using it for start up code in bespoke themes).
Deactivation hook is switch_theme.
Theme uninstallation is the sole topic of
[http://core.trac.wordpress.org/ticket/14955 [14955]]
Suggest closure.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/7795#comment:35>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list