Skip to content

Instantly share code, notes, and snippets.

/gist.md Secret

Created April 18, 2016 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/ed81729c0bee464df3d9127028722588 to your computer and use it in GitHub Desktop.
Save anonymous/ed81729c0bee464df3d9127028722588 to your computer and use it in GitHub Desktop.
//* Change the order of the label content for the my events page
function ee_custom_messaging_my_events_page( $translated, $original, $domain ) {
    $strings = array(
        '%s Registration, %s Event' => 'Registration %s, %s Event',
    );
    if ( isset( $strings[$original] ) ) {
        $translations = get_translations_for_domain( $domain );
        $translated = $translations->translate( $strings[$original] );
    }
    return $translated;
}
add_filter( 'gettext', 'ee_custom_messaging_my_events_page', 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment