gform_entries_view

gform_entries_view

DescriptionUsageParametersExamplesSource Code

Description
Triggers when viewing an entry with a non-standard entry type.
Usage
add_action( 'gform_entries_view', 'my_function', 10, 3 );

Parameters

$view string
The current entry type.

$form_id string
The ID of the form that the entry belongs to.

$entry_id string
The ID of the current entry.

Examples
if ( rgget('view') == 'my_view' ) {
add_action( 'gform_entries_view', 'my_function', 10, 3 );
function my_function($view, $form_id, $entry_id) {
//Display the view for this entry type
}
}

Source Code
This action hook is located in gravityforms.php.

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注