Support

Home Forums Event Espresso Premium Remove text from EE3 Invoice

Remove text from EE3 Invoice

Posted: August 19, 2015 at 4:56 pm

Viewing 1 reply thread


hroggen

August 19, 2015 at 4:56 pm

Hi
could someone please explain where to find the pdf invoice in EE3 as I need to remove the PAY ONLINE link,
thank you
Hazel


Dean

August 20, 2015 at 4:18 am

Hi,

Here: /wp-content/plugins/event-espresso/gateways/invoice/template.php

Or you could use one of the “translation” methods and translate it to ” (nothing)

e.g.

function mycustom_filter_gettext( $translated, $original, $domain ) {
 
    // This is an array of original strings
    // and what they should be replaced with
    $strings = array(
        'Pay Online' => '',
        // Add some more strings here
    );
 
    // See if the current string is in the $strings array
    // If so, replace its translation
    if ( isset( $strings[$original] ) ) {
        // This accomplishes the same thing as __()
        // but without running it through the filter again
        $translations = get_translations_for_domain( $domain );
        $translated = $translations->translate( $strings[$original] );
    }
 
    return $translated;
}
 
add_filter( 'gettext', 'mycustom_filter_gettext', 10, 3 );

This code would go into a site specific plugin (https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/) and would be resistant to plugin updates, whereas changing the file directly will result in you having to change it after every EE update.

Viewing 1 reply thread

The support post ‘Remove text from EE3 Invoice’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso