Rename/change name of generated PDF
-
Hello, is it possible that you add a filter for the invoice file name?
something like this would allow developers some flexibility on how to handle invoice names when generated.
In the abstract-invoice.php method generate around lines 307 you can add the following:
$base_inv_name = apply_filters('wpi_invoice_file_name', $this->get_formatted_number()); $pdf_path = $this->get_rel_pdf_path() . '/' . $base_inv_name . '.pdf';
This will allow users to add a filter and change the filename generated for the invoice.
Please let me know if you are considering this feature so that we can remove the “work-around” we’re currently using.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Rename/change name of generated PDF’ is closed to new replies.