Version: 5
CAUTION
️Version 5 of Gravity PDF does not have full support for Gravity Forms 2.5 and you should consider upgrading to version 6. If you cannot, version 5 will still function but have a degraded admin experience. Support and bug/security fixes will be provided until 27 April 2023.gfpdf_version_changed
Description
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.
Parameters
$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.
Usage
This snippet will show you how to run your own upgrade code right after a Gravity PDF update:
add_action( 'gfpdf_version_changed', function( $old_version, $new_version ) {
/* Run any upgrade checks you need to */
}, 10, 2 );
Source Code
This action is located in the Controller_Install::get_install_status()
method of /src/controller/Controller_Install.php
.