gform_entry_detail_sidebar_middle

Description

Use this action hook to add extra content to the sidebar. In Gravity Forms 1.9 and earlier, the content would be displayed before the Notifications box (if visible). In Gravity Forms 2.0+, the content is displayed after the meta boxes but before the print button.

Note: To add custom meta boxes to the sidebar, we recommend using the gform_entry_detail_meta_boxes filter.

Usage

add_action( 'gform_entry_detail_sidebar_middle', 'add_sidebar_text_middle', 10, 2 );

Parameters

Examples

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

add_action( 'gform_entry_detail_sidebar_middle', 'add_sidebar_text_middle', 10, 2 );
function add_sidebar_text_middle( $form, $entry ) {
    echo "<div class='stuffbox'><h3><span class='hndle'>Stuff in the Middle</span></h3><div class='inside'>text added in the middle!<br/></div></div>";
}

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.