gform_entries_view

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.