I’ve done quite a bit of searching. I’m looking for hook/action called after a theme update. I know the initialization one – but a basic update? Cannot seem to find.
If one does not exist, how can you run a function after auto-updating?
I’ve done quite a bit of searching. I’m looking for hook/action called after a theme update. I know the initialization one – but a basic update? Cannot seem to find.
If one does not exist, how can you run a function after auto-updating?
Comments are closed.
I have never tried to do what you are trying to do, so no promises, but there is an action hook called
upgrader_process_complete
in theupgrade
method of theTheme_Upgrader
class, and it look like it would do what you want. The action is called like:So it looks like that
$this
parameter should have the information you need.There is also an
upgrader_post_install
hook in the parentWP_Upgrader
class. That might be useful.