gform_entry_detail_content_before

Description

Use this action hook to add extra text/sections before the main content on the Entry detail page.

Usage

add_action( 'gform_entry_detail_content_before', 'add_main_text_before', 10, 2 );

Parameters

Examples

This example adds a new section with a header and text.

add_action( 'gform_entry_detail_content_before', 'add_main_text_before', 10, 2 );
function add_main_text_before( $form, $entry ) {
echo '<table class="widefat fixed entry-detail-view" cellspacing="0"><thead><tr><th>Main Content Before</th></tr></thead><tbody><tr><td>some stuff</td></tr></tbody></table>';
}

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.