gform_print_entry_disable_auto_print

gform_print_entry_disable_auto_print

DescriptionUsageParametersExamplePlacementSinceSource Code

Description
Disable auto-print when the Print Entry view has fully loaded.
Usage
The following would apply to all forms.
1add_filter( 'gform_print_entry_disable_auto_print', 'your_function_name', 10, 2 );
To target a specific form, append the form id to the hook name. (format: gform_print_entry_disable_auto_print_FORMID)
1add_filter( 'gform_print_entry_disable_auto_print_1', 'your_function_name', 10, 2 );

Parameters

false boolAuto print is enabled by default. Set to true to disable.
$form Form Object
Current form object.

Example
1add_filter( 'gform_print_entry_disable_auto_print', '__return_true', 10, 2 );
Placement
This code should be placed in the functions.php file of your active theme.
Since
This filter was added in Gravity Forms version 1.9.14.16.
Source Code
This filter is located in print-entry.php.

发表回复

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