[ad_1]
Hello, my client wants to start the filename of an invoice with a capital. The invoice filename should become like this “Invoice-2023838.pdf”.
I added the following code in the functions.php but it does not show the capital:
/**Update the invoice title to “Invoice”
*/
add_filter( ‘wpo_wcpdf_invoice_title’, ‘wpo_wcpdf_invoice_title’, 10, 2 );
function wpo_wcpdf_invoice_title ( $title, $document ) {
$title = ‘Invoice’;
return $title;
}
I am using the free version. Is this possible to achieve with the free version? If yes, how?
