[wp-trac] [WordPress Trac] #50674: Plugin and Theme Update Hooks

WordPress Trac noreply at wordpress.org
Sat Oct 10 18:49:46 UTC 2020


#50674: Plugin and Theme Update Hooks
-----------------------------+-----------------------
 Reporter:  davidbaumwald    |       Owner:  pbiron
     Type:  enhancement      |      Status:  accepted
 Priority:  normal           |   Milestone:  5.6
Component:  Upgrade/Install  |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  2nd-opinion      |     Focuses:
-----------------------------+-----------------------

Comment (by davidbaumwald):

 @pbiron They could either be dynamic:

 {{{
   do_action( "pre_upgrade_{$type}", $type, $object );
 }}}

 Or they could be split up into the individual skins and set to static,
 like:


 {{{
   do_action( 'pre_upgrade_plugin', $object );
 }}}

 It would also be nice to have the `upgrade_XXX` companions to fire _after_
 the upgrade is processed.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50674#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list