Guest User

Untitled

a guest
Jul 19th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. /**
  2. * A local translation snippet. Change 'YOUR TEXT HERE' to your desired text.
  3. *
  4. * @param $translations
  5. * @param $text
  6. * @param $domain
  7. *
  8. * @return string
  9. */
  10. function my_give_text_switcher( $translations, $text, $domain ) {
  11. // changes the "Donations" text in multiple places
  12. if ( $domain == 'give-recurring' && $text == 'Months' ) {
  13. $translations = __( 'YOUR TEXT HERE', 'give-recurring' );
  14. }
  15.  
  16. return $translations;
  17. }
  18. add_filter( 'gettext', 'my_give_text_switcher', 10, 3 );
Add Comment
Please, Sign In to add comment