WordPress.org

Make WordPress Core

Opened 3 weeks ago

Last modified 3 weeks ago

#50674 new enhancement

Plugin and Theme Update Hooks

Reported by: davidbaumwald Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: trunk
Component: Upgrade/Install Keywords: 2nd-opinion
Focuses: Cc:

Description

With plugin and theme auto-updates shipping with core in 5.5, I think it's worth considering adding some more hooks around the plugin and theme process to perhaps run prior to and after a particular update is run. Hooks like plugin_updated and theme_updated, and maybe some pre_* versions of those.

Change History (2)

#1 @pbiron
3 weeks ago

@davidbaumwald WP_Upgrader and WP_Automatic_Upgrader already have a number of hooks like that, e.g.

Do you have specific use cases that those don't cover?

Last edited 3 weeks ago by pbiron (previous) (diff)

#2 @davidbaumwald
3 weeks ago

I had considered upgrader_process_complete for my specific use-case, but you have to weed through a bunch of data to determine the object being updated. I was thinking of more granular hooks that fired globally when a plugin/theme is updated, auto or manual.

Note: See TracTickets for help on using tickets.