Created
August 29, 2014 16:32
-
-
Save strangerstudios/0ea172d918173e8376b7 to your computer and use it in GitHub Desktop.
Change wording in PMPro MailChimp Opt In Box
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
| /* | |
| Change wording in PMPro MailChimp Opt In Box | |
| Add this code to your active theme's functions.php or a custom plugin. | |
| Change the $translated_text = lines to the text you want. | |
| */ | |
| function my_gettext_pmpro_mailchimp($translated_text, $text, $domain) | |
| { | |
| if($domain == "pmpro" && $text == "Join one or more of our mailing lists.") | |
| $translated_text = "Join one or more of our newsletters."; | |
| elseif($domain == "pmpro" && $text == "Join our mailing list.") | |
| $translated_text = "Join our newsletter."; | |
| return $translated_text; | |
| } | |
| add_filter('gettext', 'my_gettext_pmpro_mailchimp', 10, 3); |
The solution by kimwhite worked for me, but it isn't working on the profile page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
domains need to be changed. see fork