• Resolved P3Designs

    (@p3designs)


    Hi there,

    Thanks for this great plugin, much better than the official Woocommerce one. I was just wondering, what php file contains the “Download invoice (PDF)” label?

    I want to change the label because it’s too long, but I can’t find where it’s located. Thanks again!

    ~ Daniel

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi Daniel,
    You can either change this with a code snippet (more information here):

    
    add_filter( 'wpo_wcpdf_myaccount_button_text', 'wpo_wcpdf_myaccount_button_text', 10, 1 );
    function wpo_wcpdf_myaccount_button_text( $button_text ) {
    	return 'Invoice'; // your preferred button text
    }
    

    Or create custom translations.

    Hope that helps!
    Ewout

    Thread Starter P3Designs

    (@p3designs)

    Hi Ewout,

    Apologies for the delay. Thanks so much for your help, this did the trick. I tried using Ultimate Branding to change the text however the () in the default text would not vanish no matter what. But this code worked sweet. Kudos to you!

    Have a great one!
    ~ Daniel

    Plugin Contributor Ewout

    (@pomegranate)

    Very glad to hear that Daniel! Let us know if there’s anything else you need help with ??
    Ewout

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing Button Label?’ is closed to new replies.