Skip to content

Instantly share code, notes, and snippets.

@ckpicker
Created July 7, 2014 15:10
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 ckpicker/80b1115eb5ab5bfd26c0 to your computer and use it in GitHub Desktop.
Save ckpicker/80b1115eb5ab5bfd26c0 to your computer and use it in GitHub Desktop.
WooTickets 3.6 // Change 'Tickets' text to 'Workshops'
add_filter('gettext', 'change_tickets_text', 10, 3);
function change_tickets_text( $translations, $text, $domain ) {
// Match the text you want you want to translate, preferably also match the text domain
if( $domain === 'tribe-wootickets' ) {
// The custom text you want instead
$text = str_ireplace( "Tickets", "Workshops", $text );
}
return $text;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment