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

    (@pomegranate)

    Hi! There’s a separate filter for this: wpo_wcpdf_myaccount_button_text.
    Alternatively you could also do this by creating custom translations (even when using english/ en_US/en_GB for example).

    Hope that helps!
    Ewout

    Hello Ewout,

    i’ve tested and tested but when apply the filter to wpo_wcpdf_myaccount_button_text

    the text still remain the same in WooCommerce orders account page.

    Plugin Contributor Ewout

    (@pomegranate)

    Hi! Can you share the exact filter+function you used? I just double checked but the example from the linked thread still works for me (2.0.15):

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

    Hello Ewout,

    the code is the same. I’ve installed the 2.0.15 version.

    Plugin Contributor Ewout

    (@pomegranate)

    That’s strange…
    A few things to check:

    1. How/where did you insert this filter?
    2. Are you referring to the button under My Account > Orders in the Actions column?

    1. I’ve insert that in a custom plugin, but to be sure i’ve insert it directly into the functions.php in theme.
    2. Yes exactly, inside the order woocommerce table

    Plugin Contributor Ewout

    (@pomegranate)

    Not entirely sure, but I think it’s this bit:

    2. Yes exactly, inside the order woocommerce table

    This only applies to the My Account > Orders listing, where the button has the text “Download invoice (PDF)”. Here’s how it looks in storefront:

    Or after applying the above filter:

    yes, exactly but in this installation won’t work 🙁

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Changing Text on “Dwnld Invoice PDF” button’ is closed to new replies.