gform_entry_detail

gform_entry_detail

DescriptionUsageParametersExamplesPlacementSource Code

Description
Use this action hook to add extra text to the Entry detail page after the entry details are displayed and before Notes (if visible).
Usage
add_action( 'gform_entry_detail', 'add_to_details', 10, 2 );

Parameters

$form Form Object
The form from which the entry value was submitted.

$entry Entry Object
The current entry.

Examples
This example displays the listed text on all entries for form id 31 when viewing the Entry details.
add_action( 'gform_entry_detail', 'add_to_details', 10, 2 );
function add_to_details( $form, $entry ) {
if ( $form['id'] == 31 ) {
echo '

This hook is used to add additional information to the details page for an entry.

';
}
}

Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in GFEntryDetail::lead_detail_page() in entry_detail.php.

发表回复

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