Description
Disable auto-print when the Print Entry view has fully loaded.
Usage
The following would apply to all forms.
add_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)
add_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
add_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.