Created
December 23, 2014 14:41
-
-
Save jesseeproductions/48897101078d0ee74e69 to your computer and use it in GitHub Desktop.
Translate Add to Cart in WooCommerce Tickets
This file contains hidden or 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
| /* | |
| * Translate Add to Cart in WooCommerce Tickets | |
| * @version 3.9 | |
| * | |
| */ | |
| function woocommcere_tickets_filter_translations($translations, $text, $domain) { | |
| if ($domain == 'tribe-wootickets') { | |
| $text = str_ireplace( 'Add to cart', 'Add to cart(Translate)', $text ); | |
| } | |
| return $text; | |
| } | |
| add_filter('gettext', 'woocommcere_tickets_filter_translations', 10, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment