gform_entry_detail_sidebar_before

gform_entry_detail_sidebar_before

DescriptionUsageParametersExamplesPlacementSource Code

Description
Use this action hook to add extra text/boxes before the first box in the Entry detail sidebar.
Usage
add_action( 'gform_entry_detail_sidebar_before', 'add_sidebar_text_before', 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_before', 'add_sidebar_text_before', 10, 2 );
function add_sidebar_text_before( $form, $entry ) {
echo "

Extra Cool Stuff

text added before!

";
}

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.

发表回复

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