Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Change some of the text strings in PMPro Addon Packages via the WP gettext filter.
function my_gettext_pmproap_changes($translated_text, $text, $domain)
if($domain == "pmproap" && $text == "Purchase this Content (%s)")
$translated_text = "Purchase Now for %s";
elseif($domain == "pmproap" && $text == "Choose a Membership Level")
$translated_text = "Choose a Plan";
return $translated_text;
add_filter('gettext', 'my_gettext_pmproap_changes', 10, 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.