Skip to content

Instantly share code, notes, and snippets.

/gist.md Secret

Created April 14, 2016 10:57
Show Gist options
  • Save anonymous/baa4f91d5703e76d72a7dc538835708a to your computer and use it in GitHub Desktop.
Save anonymous/baa4f91d5703e76d72a7dc538835708a to your computer and use it in GitHub Desktop.
function ee_custom_messaging_changes( $translated, $original, $domain ) {
    $strings = array(
        'Use Attendee #1\'s information for ALL attendees' => 'REPLACE ME',
    );
    if ( isset( $strings[$original] ) ) {
        $translations = get_translations_for_domain( $domain );
        $translated = $translations->translate( $strings[$original] );
    }
    return $translated;
}
add_filter( 'gettext', 'ee_custom_messaging_changes', 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment