[wp-trac] [WordPress Trac] #51861: Introduce "theme deleted" action

WordPress Trac noreply at wordpress.org
Tue Nov 24 08:56:57 UTC 2020


#51861: Introduce "theme deleted" action
-----------------------------+-----------------------------
 Reporter:  martin.krcho     |      Owner:  (none)
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Themes           |    Version:  5.5.3
 Severity:  minor            |   Keywords:
  Focuses:  performance      |
-----------------------------+-----------------------------
 At the moment there is no hook triggered when a theme is deleted.

 Can you add an action similar to **deleted_plugin** but for the theme
 uninstall? I attached a patch for WordPress 5.5.3 including the necessary
 changes.

 It would be much nicer than having to implement workarounds involving a
 cron job to monitor the theme list.

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


More information about the wp-trac mailing list