Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Change the messaging for attendee information to something else in registration checkout in Event Espresso 4

Add the sample code below to your child theme's functions.php file or in a site specific plugin.

//* Do NOT include the opening php tag
//* Replace attendee information on the registration checkout page with something else
function ee_change_attendee_information_registration_checkout_messaging( $translated, $original, $domain ) {
    $strings = array(
        '%s Attendee Information' => '%s Replace Me',
        'Attendee %d' => 'Replace Me %d',

    if ( isset( $strings[$original] ) ) {
        $translations = &get_translations_for_domain( $domain );
        $translated = $translations->translate( $strings[$original] );
    return $translated;
add_filter( 'gettext', 'ee_change_attendee_information_registration_checkout_messaging', 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.