Title: Variable Reference in e-mail does not work at all
Last modified: March 8, 2023

---

# Variable Reference in e-mail does not work at all

 *  Resolved [krzysztofzpom](https://wordpress.org/support/users/krzysztofzpom/)
 * (@krzysztofzpom)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/variable-reference-in-e-mail-does-not-work-at-all/)
 * Hi,
 * I use variables reference in email templates. Unfortunately, some work and some
   don’t. I am sending a screenshot of what it looks like.
   [https://prnt.sc/KVyLOYieI0zK](https://prnt.sc/KVyLOYieI0zK)
 * e.g. !!sitename!! It wasn’t in the title of the email, but it was in the body
   of the email.
 * What could be causing this?

Viewing 1 replies (of 1 total)

 *  Plugin Support [Theunis Coetzee](https://wordpress.org/support/users/ipokkel/)
 * (@ipokkel)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/variable-reference-in-e-mail-does-not-work-at-all/#post-16546743)
 * Hi [@krzysztofzpom](https://wordpress.org/support/users/krzysztofzpom/)
 * Thank you for reaching out to Paid Memberships Pro.
 * Not all email variables are available for all email templates and may require
   custom code to obtain the relative data to obtain the variable’s value.
 * You or your developer should be able to achieve this by hooking into the [pmpro_email_data](https://www.paidmembershipspro.com/hook/pmpro_email_data/)
   filter.
 * I hope this helps get you started.
 * Kind regards,
   Theunis C.

Viewing 1 replies (of 1 total)

The topic ‘Variable Reference in e-mail does not work at all’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/paid-memberships-pro_f1dacb.svg)
 * [Paid Memberships Pro - Content Restriction, User Registration, & Paid Subscriptions](https://wordpress.org/plugins/paid-memberships-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paid-memberships-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paid-memberships-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/paid-memberships-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paid-memberships-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paid-memberships-pro/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Theunis Coetzee](https://wordpress.org/support/users/ipokkel/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/variable-reference-in-e-mail-does-not-work-at-all/#post-16546743)
 * Status: resolved