[wp-trac] [WordPress Trac] #62043: Allow plugins and themes perform extra checks upon install/upgrade via filter

WordPress Trac noreply at wordpress.org
Thu Sep 12 13:56:24 UTC 2024


#62043: Allow plugins and themes perform extra checks upon install/upgrade via
filter
------------------------------+---------------------
 Reporter:  LeonidasMilossis  |       Owner:  (none)
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  6.7
Component:  Plugins           |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+---------------------

Comment (by afercia):

 Seems a good use case for two new filters to me.

 Question: should the two new filters follow the naming convention of the
 hooks already present in the `Plugin_Upgrader` and `Theme_Upgrader`
 classes? They have the same names, not prefixed by `plugin` or `theme`.
 Then, a third param is passed to the hooks to determine whether the
 package type is 'plugin' or 'theme'. See:
 - `upgrader_overwrote_package`
 - `upgrader_process_complete`

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


More information about the wp-trac mailing list