Support

Home Forums Event Espresso Premium Change the "Enter Attendee Information" button text

Change the "Enter Attendee Information" button text

Posted: March 24, 2015 at 2:39 pm


Joshua Stecker

March 24, 2015 at 2:39 pm

How can I change the “Enter Attendee Information” button text in EE3 to “Continue Checkout”? Thanks.


Tony

  • Support Staff

March 25, 2015 at 6:58 am

Hi Joshua,

The easiest way to do this is to translate that string.

We have a guide here:

https://eventespresso.com/wiki/how-to-change-wording-with-poedit/

I would recommend using the function at the bottom of the page, something like this:

function mycustom_filter_gettext( $translated, $original, $domain ) {
 
    // This is an array of original strings
    // and what they should be replaced with
    $strings = array(
        'Enter Attendee Information' => 'Continue Checkout',
        // 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 );

Placing that within your theme functions.php file or using a Site Specific Plugin should do what you need.

The support post ‘Change the "Enter Attendee Information" button text’ 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