gravityflowpdf_process_template_shortcodes

Description

The gravityflowpdf_process_template_shortcodes filter can be used to prevent shortcodes placed in the PDF template being processed.

Parameters

ParameterTypeDetails
$process_template_shortcodesBooleanDefaults to true.
$formFormThe current form.
$entryEntryThe current entry.
$stepStepThe object for the pdf step currently being processed.

Examples

Prevent shortcodes being processed for all PDF templates you can add the following line to your theme functions.php file

add_filter( 'gravityflowpdf_process_template_shortcodes', '__return_false' );

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?