gfpdf_version_changed

See https://gravitypdf.com/documentation/v4/gfpdf_version_changed/ for more details about this action.

Description

do_action( 'gfpdf_version_changed', (unknown) $get_option, (unknown) $pdf_extended_version ); 

Parameters (2)

0. $get_option (unknown) => get_option( 'gfpdf_current_version' )
The get option.
1. $pdf_extended_version (unknown) => PDF_EXTENDED_VERSION
The pdf extended version.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'gfpdf_version_changed', $get_option, $pdf_extended_version ); 
The following example is for adding a hook callback.
  1. // define the gfpdf_version_changed callback 
  2. function action_gfpdf_version_changed( $get_option, $pdf_extended_version ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'gfpdf_version_changed', 'action_gfpdf_version_changed', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'gfpdf_version_changed', 'action_gfpdf_version_changed', 10, 2 ); 

Defined (1)

The action is defined in the following location(s).

/src/controller/Controller_Install.php  
  1. do_action( 'gfpdf_version_changed', get_option( 'gfpdf_current_version' ), PDF_EXTENDED_VERSION );