Description
Triggered when Gravity Forms is loaded. Use this hook to initialize any functionality that depends on Gravity Forms.
Usage
add_action( 'gform_loaded', 'my_function', 10, 0 );
Parameters
This action does not have any parameters.
Basic usage
function my_function() {
//Do something here
}
add_action( 'gform_loaded', 'my_function', 10, 0 );
Placement
gform_loaded
fires while plugins are loading. Because themes load after plugins, code added to a theme’s functions.php will miss this action. Put code that hooks into gform_loaded in a custom plugin, must-use (mu-) plugin, a custom add-on, or a code-snippets solution that executes snippets as a plugin.
Refer to do_action( ‘plugins_loaded’ ) for more information.
Source Code
This action hook is located in gravityforms.php.