Hi Philippe, thank you for reaching out to Paid Memberships Pro.
Please try changing the priority in line add_filter('gettext', 'mypmpro_custom_gettext', 20, 3); to add_filter('gettext', 'mypmpro_custom_gettext', 20, 99); and let me know if this helps at all? Its quite strange that it only applies to one level and not the other.
Kind Regards,
Jarryd
Support Manager at Paid Memberships Pro
Please give this updated version a try and let me know if it helps.
https://gist.github.com/JarrydLong/f6254510dca8f9518a42222d348871e8
Kind Regards,
Jarryd
Support Manager at Paid Memberships Pro
Hi Jarryd,
There has been no change. The message “A welcome email with a copy of your initial membership invoice has been sent to …” still appears on the Student membership I have, not on the Simple one.
BTW, I duplicated my Simple level and gave it the standards I need for the Student one. The “A welcome email with a copy of your initial membership invoice has been sent to …” reappeared.
Please confirm what version of Paid Memberships Pro you are currently running as well as any other PMPro Add Ons that are active?
Hi Jarryd,
I use the free version of PMP and the Askimet integration add-on, nothing else. I just made some other tests and can confirm that the issue occurs only with paying levels, not free ones.
Thank you for your feedback. Just a reminder that Paid Memberships Pro is entirely free.
It looks like there’s a few versions of this string and we were checking for an exact string instead. I’ve changed this up in the recipe below and tested it on my side – the ‘welcome email’ text is removed from the checkout page.
https://gist.github.com/JarrydLong/1c192a71bb4ac88625a8d10ffc92f14d
My pleasure, Philippe!
Kind Regards,
Jarryd
Support Manager at Paid Memberships Pro