Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This snippet is now hosted here: https://gist.github.com/elimn/48b04dc1754bd99e91ad
- // See the codex to learn more about WP text domains:
- // http://codex.wordpress.org/Translating_WordPress#Localization_Technology
- // Example Tribe domains: 'tribe-events-calendar', 'tribe-events-calendar-pro'...
- add_filter('gettext', 'theme_filter_text', 10, 3);
- function theme_filter_text( $translations, $text, $domain ) {
- // Copy and modify the following if {} statement to replace multiple blocks of text
- // Match the text you want you want to translate, preferably also match the text domain
- if($text === 'View All Events in Category' && $domain === 'tribe-events-calendar') {
- // The custom text you want instead
- $text = 'my custom text';
- }
- return $text;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement