Class "WPRM_Email_Template_Tags" Actions

This article provides an overview of all the WordPress actions available within the WPRM_Email_Template_Tags PHP Class.

wprm_add_email_tags

Allows you to register custom email tags for email and SMS notifications. The action needs to use the wprm_add_email_tag() function.

The wprm_add_email_tag() function takes three parameters:

  • $tag – The tag to register, such as “admin_email”. In the email settings, tags are wrapped with {} but not when they are registered.
  • $description – A description of what the tag displays.
  • $func – The call back function to render the tag’s output.

Here’s an example that shows how to add a tag that displays the site’s admin email.