change invoice in Receipt | WordPress.org

[ad_1]

Hi @croberta84,

Although you should be able to translate the PDF invoice label with Loco Translate, you can also achieve this with a code snippet, as described in the documentation: Custom PDF filenames.

For your specific case, you can use this code snippet:

/**
 * PDF Invoices & Packing Slips for WooCommerce
 * Customize the PDF invoice title
 */
add_filter( 'wpo_wcpdf_invoice_title', function( $title, $document ) {
    $title="Receipt";
    return $title;
}, 10, 2 );

If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters

Alternatively, with the Professional extension, you can do this directly from the plugin settings:

 

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