Loader
class Loader implements Helper_Interface_Filters, Helper_Interface_Actions
Detects when the Toolkit header is included, bypasses the PDF sandbox and injects our Toolkit helper classes automatically.
Methods
Initialise class
Add WordPress filters
Add WordPress actions
Determine if the current template has the "Toolkit" header and skip the standard Mpdf HTML sandbox
Loads the current PDF template and injects our Toolkit helper classes
Details
at line 59
void
init()
Initialise class
at line 71
void
add_filters()
Add WordPress filters
at line 82
void
add_actions()
Add WordPress actions
at line 98
bool
maybeSkipPdfHtmlRender(bool $skip, array $args)
Determine if the current template has the "Toolkit" header and skip the standard Mpdf HTML sandbox
Triggered via the gfpdf_skip_pdf_html_render
filter.
at line 119
void
handleToolkitTemplate(array $args, Helper_PDF $pdfHelper)
Loads the current PDF template and injects our Toolkit helper classes
Triggered via the gfpdf_skipped_html_render
action.