Description
The gravityflowpdf_process_template_shortcodes filter can be used to prevent shortcodes placed in the PDF template being processed.
Parameters
Parameter | Type | Details |
---|---|---|
$process_template_shortcodes | Boolean | Defaults to true. |
$form | Form | The current form. |
$entry | Entry | The current entry. |
$step | Step | The 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?