gform_preview_body_open

gform_preview_body_open

DescriptionUsageParametersExamplesSinceSource Code

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
1add_action( 'gform_preview_body_open', 'my_function', 10, 1 );

Parameters

$form_id int
The ID of the current form being previewed.

Examples
1234function 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.

發表回覆

您的郵箱地址不會被公開。 必填項已用 * 標註