Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Translate Text using gettext filter/hook
- * As for where to paste this : http://wp-events-plugin.com/tutorials/how-to-safely-add-php-code-to-wordpress/
- */
- function change_label( $translated_text, $text, $domain ) {
- switch ( $translated_text ) {
- case 'Recent Bookings' :
- $translated_text = 'Gutscheincode';
- break;
- }
- return $translated_text;
- }
- add_filter( 'gettext', 'change_label', 100, 3 );
RAW Paste Data