Filter: wr_pdf_template_container_pdf_file
Allows you to overwrite the pdf file path.
Example: Add fonts to pdf builder
add_filter( "wr_pdf_template_container_pdf_file", array( $this, "set_pdf_template_container_pdf_file" ), 10, 4 );
public function set_pdf_template_container_pdf_file( $css, $options, $payload ) {
// Filter PDF Template Identifier
if($option["identifier"]=="your_identifier") {
$css = "YOUR CSS";
}
return $css;
}