• Resolved pewpew41

    (@pewpew41)


    I’m looking at using gettext to change the wording for the Payment Method of ‘Stripe’ on the Membership Checkout page (where it shows the invoice), but haven’t able to get it to work. Any ideas?

    This code snipper was what I tried:

    function my_gettext_checkout_check($translated_text, $text, $domain)
    {
    	if($domain == "paid-memberships-pro" && $text == "Stripe")
    		$translated_text = "Stripe Gateway";		//change the text here
    	
    	return $translated_text;
    }
    add_filter('gettext', 'my_gettext_checkout_check', 10, 3);
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Using gettext to change Payment Method wording in Membership Checkout page’ is closed to new replies.