The pmpro_email_data filter lets developers add custom variables to email templates in Paid Memberships Pro. This hook passes a data array and the PMProEmail object. You can use these values in templates with placeholder tokens like !!key!!.
Free Course: Membership Site Development—The Basics
Develop a deeper understanding of membership site development in this beginner-level course. Learn how to make your site work better, save yourself time and money, and improve your site's performance.