Hi
Yes perfect but i have fixed it different way. here is code.
add_filter( 'wpo_wcpdf_invoice_title', 'wpo_wcpdf_invoice_title', 10, 2 );
function wpo_wcpdf_invoice_title ( $title, $document = null ) {
if (!empty($document) && !empty($document->order)) {
if ( $document->order->get_payment_method() === 'other_payment' ) {
$title = 'Quote';
}
}
return $title;
}
This will helps other ??