Description
The gform_preview_footer action is triggered when the footer of the form preview page loads, allowing further actions to be done.
Usage
add_action( 'gform_preview_footer', 'my_function', 10, 1 );
Parameters
| Parameter | Type | Description |
|---|---|---|
$id | int | The ID of the current form being previewed. |
Examples
Perform an action when the form preview footer loads.
function my_function() {
//Do something here
}
add_action( 'gform_preview_footer', 'my_function', 10, 1 );
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?
Source Code
This action hook is located in preview.php.