LegacyLoader
class LegacyLoader implements Helper_Interface_Filters, Helper_Interface_Actions
Detects when the legacy Advanced Template option is enabled, bypasses the PDF sandbox, and injects our Toolkit helper classes and legacy variables automatically.
Methods
Initialise class
Add WordPress filters
Add WordPress actions
Check if the legacy setting is enabled and skip the sandbox
Include variables needed for legacy templates
Overload the current Mpdf object being processed if template creates its own object
Details
at line 57
void
init()
Initialise class
at line 69
void
add_filters()
Add WordPress filters
at line 82
void
add_actions()
Add WordPress actions
at line 100
bool
maybeSkipPdfHtmlRender(bool $skip, array $args)
Check if the legacy setting is enabled and skip the sandbox
Check if the advanced_template
PDF setting exists and is set to "Yes" and skip the PDF sandbox
Triggered via the gfpdf_skip_pdf_html_render
filter.
at line 120
array
maybeAddLegacyTemplateArgs(array $args, array $oldArgs)
Include variables needed for legacy templates
Triggered via the gfpdf_developer_toolkit_template_args
filter
at line 144
overloadMpdfClass($template, $args, $pdfHelper)
Overload the current Mpdf object being processed if template creates its own object