How Can I Edit The Email Notifications Template?

You are here:
Back to KB search

The Email Notifications that you configure use a template that can be edited and personalized. You can also configure and use a different email template for a specific notification, as this article will explain.

Editing the Email Notification Template

To modify the email template that the WP Security Audit Log plugin uses follow the below procedure:

  1. Click the Notifications entry in the Audit Log plugin menu.
  2. Click on the Notifications Template tab.
  3. Use the editor to modify both the subject and the body of the email. Note that you can use any of the built-in tags (such as {title}, {username}) in both the subject and the body of the email.

Use the built-in editor to edit the Email notification template

 

Creating an Email Template for a Specific Notification

You can override the default notification template and create a custom one for a specific notification. To use a custom template, when configuring the notification with the trigger builder simply click on Use event specific email template which is highlighted in the below screenshot.

Creating and editing the template for a specific user build notification

Use the email editor to specify a subject and a body for the email. You can use any of the built-in tags (such as {title}, {username}) in both the subject and the body of the email. Once ready, save the notification by clicking Save Notification.

The next time the criteria for this email notification is met and it is triggered, this email template will be used for this notification rather than the generic one.