Changing Email Content based on Situation (Taxonomy) in Code
-
I have a pretty detailed email template I want to use in BuddyPress that the email post type can’t handle even with adding my own header and footer before and after {{{content}}} in single-bp-email.php.
What I am trying to do now is figure out how to load all the email content in single-bp-email.php and change the content within based on situation (email taxonomy). For instance, when it is a friend request, I would change my link button to {{{friend-requests.url}}} or {{{activate.url}}} when the situation is registered for account.
Is there a reasonable way to do this? Would I iterate through the email taxonomy terms to get the default ones. Is there a list of these somewhere?
https://codex.buddypress.org/emails/custom-emails/ is the deepest discussion on custom emails I could find.
Thanks!
- You must be logged in to reply to this topic.