Description
Use this action hook to add extra text/boxes after the last box in the Entry detail sidebar.
Usage
add_action( 'gform_entry_detail_sidebar_after', 'add_sidebar_text_after', 10, 2 );
Parameters
Parameter | Type | Description |
---|---|---|
$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_after', 'add_sidebar_text_after', 10, 2 );
function add_sidebar_text_after( $form, $entry ) {
echo "<br/><div class='stuffbox'><h3><span class='hndle'>More Cool Stuff</span></h3><div class='inside'>text added after!<br/></div></div>";
}
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?
Source Code
This filter is located in GFEntryDetail::lead_detail_page() in entry_detail.php.