Aborting Plugin Update (upgrader_post_install filter)
-
Hello, I’m writing a plugin and I was wondering if there was a way to abort an upgrade to the plugin if an error occurred. I’m using the
upgrader_pre_install
andupgrader_post_install
filter to do some work during the update (saving important user-uploaded files to a temporary directory) that would normally get deleted when WordPress updates the plugin.Is there a way to abort the plugin upgrade process in the
upgrader_post_install
filter? Or is there a different way I might be able to handle this case?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Aborting Plugin Update (upgrader_post_install filter)’ is closed to new replies.