Filter: wr_pdf_template_filename

Allows you to edit the pdf filename

 

 

 

Example: Change Filename programatically

add_filter( "wr_pdf_template_filename", array( $this, "custom_filename" ), 10, 3 );

public function custom_filename( $filename, $payload ) {
	if ( $payload["identifier"] == "identifier" ) {
		$filename = "custom.pdf"
	}

	return $filename;
}