Description
The “gform_preview_init” action is triggered when the form preview page loads, allowing further actions to be done.
Usage
add_action( 'gform_preview_init', 'my_function' );
Parameters
This hook has no parameters.
Examples
function my_function() { // Do something here } add_action( 'gform_preview_init', 'my_function' );
Since
This action hook was added in Gravity Forms 2.5
Source Code
This action hook is located in preview.php.