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.

發表回覆

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