Skip to main content
Version: 5



This action is triggered when Gravity PDF is activated for the first time. It will not fire for subsequent activations or upgrades (see gfpdf_version_changed) unless the software is first uninstalled.


This snippet will show you how to run your own code right when Gravity PDF is installed:

add_action( 'gfpdf_plugin_installed', function() {
/* Run any one-time checks you need to */
} );

Source Code

This action is located in the Model_Install::install_plugin() method of /src/model/Model_Install.php.