Created
May 19, 2016 14:00
-
-
Save niconerd-zz/90dd3a7ffd527b79a9dd35ae0b076512 to your computer and use it in GitHub Desktop.
Change translations in Event Tickets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Change translations in Event Tickets | |
*/ | |
function tribe_custom_theme_text ( $translations, $text, $domain ) { | |
$custom_text = array( | |
'Send RSVP confirmation to:' => 'Enviar RSVP a:', | |
'Full Name' => 'Nombre Completo', | |
); | |
if((strpos($domain, 'event-tickets') === 0 ) && array_key_exists($text, $custom_text) ) { | |
$text = $custom_text[$text]; | |
} | |
return $text; | |
} | |
add_filter('gettext', 'tribe_custom_theme_text', 20, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment