Version: 5
🔥 Gravity PDF v5 end of life was 2023-04-28 and this version is no longer supported. This legacy documentation is kept for reference only.
gfpdf_plugin_installed
Description
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.
Usage
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
.