How can we help?

Search for answers or browse our knowledge base.

Table of Contents

How can I receive an email or SMS notification when something changes on my WordPress site?

Use the SMS & Email Notifications feature in the WP Activity Log plugin to receive an email or SMS notification when a specific change happens on your WordPress sites and multisite networks. The concept of configuring a SMS and / or email notifications is very simply: configure the criteria and when an event in the activity log matches the criteria the notification is sent.

This document explains how to configure an email and or SMS notification trigger in just two steps.

1. Find the Event ID of the WordPress Change

The WP Activity Log plugin uses a different event ID for the different changes or user actions in WordPress. For example whenever a user logs in, the ID of the event in the WordPress activity log is 1000. Use the search in the list of WordPress activity log alert IDs to find the ID of the change you’d like to be notified about.

In this example we will configure an email and SMS notification for when a user with the Editor role publishes a post. The first thing we need to do is to find the ID of the event that the plugin logs when a user publishes a post. I searched for the term publish in the list of event IDs and can see that it is 2001.

Searching for a specific WordPress activity log alert ID

2. Create the Notification Trigger

Adding a new email & SMS notification

Now that we know the event ID we just have to create the notification trigger seen in the above screenshot. To create it:

  1. Click on the Notifications node in the plugin menu,
  2. Click the Custom Notifications taband click the Add New button.
  3. Specify a title for the trigger. In our example we are using Editor published content.
  4. Click the + Add Trigger button.
  5. Configure the following criterion: EVENT ID IS EQUAL 2001.

Note: if you configure the above trigger only the plugin will send an email whenever a new post is published, though we want to receive a notification when an editor publishes a post, so we have to configure another criterion in the trigger.

  1. Click the +Add Trigger button to add the second criterion.
  2. Configure the following: AND USER ROLE IS EQUAL EDITOR.
  3. Specify the email address(es) and mobile number(s) you’d like to alert and click Add Notification to save the trigger.

Note: to send SMS messages integrate the plugin with Twilio.

More advanced trigger criteria

You can use more trigger types to build more complex criteria. For example you want to be alerted via email or receive a SMS when an editor publishes a post that has the movie custom post type. In such case you can built a trigger such as the below:

ALERT CODE IS EQUAL 2001 AND USER ROLE IS EQUAL EDITOR AND POST TYPE IS EQUAL Movie

You can read more about grouping email notification triggers & using operands in the Getting started guide for WordPress email notifications.

Uploading WP 2FA as a zip file in WordPress
WP 2FA in the WordPress plugin repository
Close

Installing WP 2FA Free

Congratulations on taking the first step towards enhancing your WordPress site's security with WP 2FA Free! You're now on your way to protecting your valuable data and ensuring peace of mind. No coding or technical knowledge is required.

 

Below are two ways to install WP 2FA on your website:

Go to your plugin dashboard on your site, then go to "Add New", and then search for WP 2FA.

Download the WP 2FA plugin zip, then select upload in your plugin dashboard under "Add New".

OPTION 1

OPTION 2

Uploading CAPTCHA 4WP as a zip file in WordPress
CAPTCHA 4WP in the WordPress plugin repository
Close

Installing CAPTCHA 4WP Free

Well done you. You're one step closer to safeguarding your WordPress website from spam and automated attacks with CAPTCHA 4WP. You'll be able to effortlessly integrate CAPTCHA into your forms and enjoy a website with enhanced security.

 

Below are two ways to install CAPTCHA 4WP on your website:

Go to your plugin dashboard on your site, then go to "Add New", and then search for CAPTCHA 4WP.

Download the CAPTCHA 4WP plugin zip, then select upload in your plugin dashboard under "Add New".

OPTION 1

OPTION 2

Uploading WP Activity Log as a zip file in WordPress
WP Activity Log in the WordPress plugin repository
Close

Installing WP Activity Log Free on your website

You deserve a pat on the back for choosing to record user actions and changes on your website. That is the first step towards better user accountability, easier troubleshooting of website security, and many other benefits of issues.

 

Below are the two ways to install WP Activity Log on your website:

Go to your plugin dashboard on your site, then go to "Add New" and then search for WP Activity Log.

Download the WP Activity Log plugin zip, then select upload in your plugin dashboard under "Add New".

OPTION 1

OPTION 2

Uploading Melapress Login Security as a zip file in WordPress
Melapress Login Security in the WordPress plugin repository
Close

Installing Melapress Login Security Free

Congratulations on taking control of your WordPress website's security by implementing robust login and password policies with Melapress Login Security. You can change your login page URL, limit failed login attempts, and reset passwords.

 

Below are two ways to install Melapress Login Security on your website:

Go to your plugin dashboard on your site, then go to "Add New" and then search for Melapress Login Security.

Download the Melapress Login Security plugin zip, then select upload in your plugin dashboard under "Add New".

OPTION 1

OPTION 2