Description
The “gform_preview_body_open” action is triggered when the body of the form preview page loads, allowing further actions to be done.
Usage
1 | add_action( 'gform_preview_body_open' , 'my_function' , 10, 1 ); |
Parameters
- $form_id int
The ID of the current form being previewed.
Examples
1 2 3 4 | function my_function() { //Do something here } add_action( 'gform_preview_body_open' , 'my_function' , 10, 1 ); |
Since
This action hook was added in Gravity Forms 2.4.19
Source Code
This action hook is located in preview.php.