Skip to content

Instantly share code, notes, and snippets.

@strangerstudios
Created August 29, 2014 16:32
Show Gist options
  • Save strangerstudios/0ea172d918173e8376b7 to your computer and use it in GitHub Desktop.
Save strangerstudios/0ea172d918173e8376b7 to your computer and use it in GitHub Desktop.
Change wording in PMPro MailChimp Opt In Box
/*
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);
@kimwhite
Copy link

domains need to be changed. see fork

@sheerazchand
Copy link

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