• Resolved padroang

    (@padroang)


    Is it possible to change the “Invoice Number” text to “Receipt Number”, and “Invoice Date” to “Receipt Date”?

    Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Contributor alexmigf

    (@alexmigf)

    Hello @padroang

    Please add the following code snippet to your theme functions.php file:

    add_filter( 'gettext', 'wcpdf_override_strings', 10, 3 );
    function wcpdf_override_strings( $translation, $text, $domain ) {
    	if( $domain == 'woocommerce-pdf-invoices-packing-slips' ) {
    		if( $text == 'Invoice Number:' ) {
    			$translation = 'Receipt Number:';
    		}
    		if( $text == 'Invoice Date:' ) {
    			$translation = 'Receipt Date:';
    		}
    	}
        return $translation;
    }

    If you never worked with actions/filters please read our documentation page: How to use filters

Viewing 1 replies (of 1 total)
  • The topic ‘Change Invoice Number to Receipt Number’ is closed to new replies.