[wp-trac] [WordPress Trac] #38001: Theme un/installation hooks like plugins

WordPress Trac noreply at wordpress.org
Thu Sep 8 23:38:36 UTC 2016


#38001: Theme un/installation hooks like plugins
-----------------------------+-----------------------------
 Reporter:  sidati           |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Themes           |    Version:  trunk
 Severity:  normal           |   Keywords:
  Focuses:  template         |
-----------------------------+-----------------------------
 Hi,

 `register_activation_hook`, `register_deactivation_hook` &
 `register_uninstall_hook` are very helpful for plugins but for themes
 there is no such thing, '''yes i do know''' the existence of
 `after_switch_theme` & `switch_theme` but there is no `after_delete_theme`
 action and never will be, cause there is no access to theme php files
 after deactivation.

 That is why i suggest to use "the plugin approach" with themes :), what do
 you think ?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38001>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list