Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #14955, comment 33


Ignore:
Timestamp:
10/15/2019 09:33:42 PM (5 years ago)
Author:
pbiron
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14955, comment 33

    initial v1  
    33I think #37951 should be opened back up as it is more appropriate to these hooks (since this ticket was originally intended for theme `uninstall` hooks), but since @vetyst was encouraged to add his similar patch to this ticket I did as well.
    44
    5 My use case is simple: I've got a plugin that modifies the database when themes are installed (which it detects by hooking into [https://developer.wordpress.org/reference/hooks/upgrader_process_complete/ upgrader_process_complete] and I need it to cleanup after itself when themes are deleted.
     5My use case is simple: I've got a plugin that modifies the database when themes are installed (which it detects by hooking into [https://developer.wordpress.org/reference/hooks/upgrader_process_complete/ upgrader_process_complete]) and I need it to cleanup after itself when themes are deleted.