We save the Gravity PDF version number in the database and when the plugin is updated (and the version number changes) this action is triggered.
$old_version | string
- The version Gravity PDF was at before the update took place
$new_version | string
- The version of Gravity PDF now being run on the website.
This snippet will show you how to run your own upgrade code right after a Gravity PDF update:
This action is located in the
Controller_Install::get_install_status() method of