• Resolved summitwinterguard

    (@summitwinterguard)


    On my invoices I use wallet to allow partial payments by customers from their account balance. The invoice says VIA WALLET. Can I change the text to say ACCOUNT BALANCE instead of via wallet?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor alexmigf

    (@alexmigf)

    Hello @summitwinterguard

    Please try the following code below inside your theme functions.php file:

    add_filter( 'gettext', 'wcpdf_override_strings', 10, 3 );
    function wcpdf_override_strings( $translation, $text, $domain ) {
        $translation = str_ireplace( 'VIA WALLET', 'ACCOUNT BALANCE', $translation );
        return $translation;
    }

    If you never worked with filters/actions please refer this documentation page: How to use filters

    Thread Starter summitwinterguard

    (@summitwinterguard)

    Perfect. Thank you so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change text’ is closed to new replies.