Created
July 7, 2014 15:10
-
-
Save ckpicker/80b1115eb5ab5bfd26c0 to your computer and use it in GitHub Desktop.
WooTickets 3.6 // Change 'Tickets' text to 'Workshops'
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
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