DescriptionUsageParametersExamplesPlacementSource Code
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
$form Form Object
The form from which the entry value was submitted.
$entry Entry Object
The current entry.
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 "
Stuff in the Middle
";
}
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.