Change text on invoice with filter
-
Hi there,
I’ve succesfully changed the title of the invoice from “factuur” to “Bestelling” with the next filter:
add_filter( 'wpo_wcpdf_filename', 'wpo_wcpdf_custom_filename', 10, 4 ); function wpo_wcpdf_custom_filename( $filename, $template_type, $order_ids, $context ) { $invoice_string = _n( 'invoice', 'invoices', count($order_ids), 'woocommerce-pdf-invoices-packing-slips' ); $new_prefix = _n( 'bestelling', 'bestelling', count($order_ids), 'woocommerce-pdf-invoices-packing-slips' ); $new_filename = str_replace($invoice_string, $new_prefix, $filename); return $new_filename; }
However there are still two pieces of text on the invoice that also need to change:
– invoicedate
– invoicenumberCan you provide me the correct filter to change invoicedate to “besteldatum” and invoicenumber to “bestelnummer”. I can’t seem to find the correct name and line to use. Maybe possible to put a page on your supportsite with useful visual hooks to change?
Thanx
Ingrid
The page I need help with: [log in to see the link]
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Change text on invoice with filter’ is closed to new replies.