Hi,
I have found a solution by selecting the payment method.
Thx
G
add_filter( ‘wpo_wcpdf_invoice_title’, ‘wpo_wcpdf_invoice_title’, 10, 2 );
function wpo_wcpdf_invoice_title ( $title, $document = null ) {
$title = “INVOICE”;
if (!empty($document) && !empty($document->order)) {
if ( $document->order->get_payment_method() === ‘pos_cash’ ) {
$title = ‘POS INVOICE’;
}
}
return $title;