Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * A local translation snippet. Change 'YOUR TEXT HERE' to your desired text.
- *
- * @param $translations
- * @param $text
- * @param $domain
- *
- * @return string
- */
- function my_give_text_switcher( $translations, $text, $domain ) {
- // changes the "Donations" text in multiple places
- if ( $domain == 'give-recurring' && $text == 'Months' ) {
- $translations = __( 'YOUR TEXT HERE', 'give-recurring' );
- }
- return $translations;
- }
- add_filter( 'gettext', 'my_give_text_switcher', 10, 3 );
Add Comment
Please, Sign In to add comment