gform_view

gform_view

DescriptionUsageParametersExamplePlacementSource Code

Description
The 「gform_view」 action allows additional actions to be performed based on the form view. Some form views that are used are 「entries」, 「entry」, 「notification」, and 「settings」.
Usage
add_action( 'gform_view', 'your_function_name' );

Parameters

$view string
The current view.

$id string
The form ID being viewed.

Example
add_action( 'gform_view', 'your_function_name' );

function your_function_name() {
// Do something
}

Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in gravityforms.php.

發表回覆

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