Starting the invoice filename with a capital

[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?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer