How to Get Email Notification for Post Changes in WordPress

Do you want to get email notifications for post changes in WordPress?

By default, WordPress does not send any notifications when posts are changed by any user. If you run a multi-author WordPress site, then you may want to stay informed about post changes on your website.

In this article, we will show how to get email notifications for post changes in WordPress.

Setting up email notifications for post changes in WordPress

Why Set up Email Notifications for Post Changes in WordPress?

If you are the only one working on your own WordPress website, then it is easier to keep an eye on everything that is happening on your website.

However, if you have other authors writing blog posts, or SEO specialists optimizing blog posts for SEO, then you may want to keep an eye on the changes they make.

For instance, you may want to be alerted when a new post is published or if changes were made to an older article.

This also helps all team members accountable. If they make a mistake, then it can be easily caught and remedied quickly.

That being said, let’s take a look at how to easily set up email notifications for post changes in WordPress.

We’ll be showing you two methods to do that, you can choose one that works best for you. We’ll also show you how to undo changes and improve the deliverability of WordPress notification emails.

Method 1. Set up Post Changes Notifications in WordPress using WP Activity Log

This method is recommended for all users as it is easier, powerful, and flexible.

First thing you need to do is install and activate the WP Activity Log plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you’ll be asked to enter your license key. You can find this information under your account on the WP Activity Log website.

Add license key for WP Activity Log

Next, you’ll be given the option to run the set up wizard . You can answer a few quick questions to set up important monitoring and logging features. All these things can be changed later in plugin settings too.

WP Activity Log set up wizard

After that, you need to visit WP Activity Log » Notifications page and switch to the Content Changes tab.

Setting up content change notifications in WP Activity Log

From here, you need to select the events that will trigger notifications. The plugin comes with three default notifications covering most content changes.

Next to each event, you need to enter the email address you want to send notifications to. Optionally, you can also add a mobile phone number to get SMS notifications for post changes (we will show you how to set it up later in this article).

Finally, click on the Save notifications button to store your changes.

Setting up SMS Notifications for Post Changes in WordPress

WP Activity Log allows you to easily receive SMS notifications for post changes and other WordPress activities. To do that, you’ll need a Twilio account and a phone number.

Twillio is a paid service with a pay as you go pricing model for SMS starting at $0.0075 per SMS. You’ll also need to purchase a virtual phone number which will be used to send messages.

Simply go to the Twillio website and signup for a free trial account.

Sign up for a Twilio account

After setting up your account, you’ll reach the Twillio dashboard where you can copy your Account SID, Auth Token, and get a trial phone number.

Getting your Twilio credentials

Copy and paste these values to a text editor or leave this browser tab open.

Next, switch back to your WordPress website admin area and visit the WP Activitiy Log » Settings page. From here, switch to the SMS Provider tab and enter your Twilio credentials.

Entering your Twilio credentials

Don’t forget to click on the save changes button to store your settings.

Testing Your Post Changes Notifications with WP Activity Log

WP Activity Log allows you to easily test your post change notifications. Simply go back to the WP Activity Log » Notifications page and switch to the ‘Content Changes’ tab.

Test notifications in WordPress Activity Log

Scroll down and click on the ‘Test Notifications’ button. This will bring up a popup window where you can enter an email address and a mobile phone number to send notifications.

Send test notifications

WP Activity Log will then send test notifications. If you do not receive an email notification right away, then you can jump to the fixing email notifications in the WordPress section.

If you fail to receive SMS notifications, then check your Twilio credentials to make sure they are correct.

Method 2. Sending Email Notifications for Post Changes with Better WordPress Notifications

This method is easy to use, but it doesn’t come with ready-made template. While this method allows you to send an email notification when a post is changed, you would have to write the email yourself and investigate the activity on your own.

First, you need to install and activate the Better Notifications for WordPress plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Notifications » Add New page to create your first custom notification.

Creating a post change notification

First, you need to provide a title for the notification. After that, choose the ‘Notification for’ option, which is the event that will trigger this notification.

For instance, we have chosen ‘Post Updated’ as the event for this notification.

Next, you can set email options like from, cc, sender email. You can skip them and the plugin will use your default WordPress email settings.

Setting up email settings

Next, you need to select the users or user roles that will receive this notification under the ‘Send to’ option. Below that you can write the email subject and the message itself.

Better Notifications for WP doesn’t come with a template for post changes. This means you’ll need to write your own email message.

The plugin comes with a bunch of shortcodes that you can use. You can view all of them by clicking on the ‘Find shortcodes’ button.

Find shortcodes to include in your email notification

Lastly, you need to click on the Save button to store your email notification. After that, you’ll be able to click on the ‘Send Me a Test Email’ button to see if it is working.

Save and test your email notification

Better Notification for WordPress is not an activity monitoring plugin. This means you’ll need to set up multiple notifications to cover different types of content changes in WordPress.

For instance, you may want to set up a ‘Notification for’ when a new ‘Post Published’ or another one for when a category or tag is changed, and more.

It also allows you to create custom notifications or modify default WordPress notifications as well. For more details, see our article on how to create better custom notifications in WordPress.

Revise and Undo Post Changes in WordPress

Once you have received an email notification for post changes, you may want to see what changes were made, who made them, and when.

WordPress comes with a built-in revision management system that keeps track of all changes made to an article.

Simply edit the post or page that you want to review and then click on the ‘Revisions’ tab under the ‘Post’ settings from the right-column.

Open revisions for a post or page in WordPress

This will bring you to the post revisions screen where you can check the ‘Compare two revisions’ box and then move the slider below to compare the changes.

Comparing revisions in WordPress

Scroll down and you will see the changes between the two revisions highlighted in red and green colors.

Changes highlighted in revision history

If you don’t like the changes, then you can simply click on the ‘Restore revision’ button to undo them and return to the previous version.

Troubleshooting Email Notifications in WordPress

By default, WordPress uses the PHP mail() function to send emails.

This method does not use proper authentication (login or password) which means it can be easily misused. This is why most spam filters mark such emails as spam or block them altogether.

To fix this, you need to use a proper SMTP service provider to send out WordPress emails. There are even free SMTP servers like Gmail, Sendinblue, Sendgrid, and more that you can use with WordPress.

To set up SMTP, you need to install and activate the WP Mail SMTP plugin. For more details, see our step by step guide on how to install a WordPress plugin.

WP Mail SMTP allows you to connect your WordPress site to your SMTP service provider and send all your WordPress emails with much higher deliverability.

Upon activation, you need to go to the WP Mail SMTP » Settings page in your WordPress admin area to set up the plugin.

WP Mail SMTP license

First, you need to enter your license key. You can find this information under your account on the WP Mail SMTP website.

After that, scroll down to the ‘Mailer’ section to select your SMTP service provider. WP Mail SMTP will show all top SMTP service providers. You can click on your provider and then enter the required information below (usually an API key).

SMTP mailers in WP Mail SMTP

If your mailer is not listed, then you can simply choose ‘Other SMTP’ option and enter the required information.

For more detailed instructions, see our tutorial on how to fix WordPress not sending email issue.

We hope this article helped you set up email notifications for post changes in WordPress. You may also want to see our tips on getting more traffic to your blog and the best WordPress SEO plugins and tools to grow your website.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Get Email Notification for Post Changes in WordPress appeared first on WPBeginner.

WordPress Post Revisions Made Simple: A Step by Step Guide (2019)

Did you know that WordPress comes with a built-in feature that allows you to undo changes and go back to a previous version of a post?

This feature is called Post Revisions or simply Revisions.

Most of us make mistakes when writing. Sometimes you might wish that you hadn’t deleted what you wrote earlier. Revisions allow you to fix that by going back in time and undoing the changes.

In this article, we will show you how to easily undo changes in WordPress with post revisions. We will also show you how to easily manage post revisions in WordPress.

Managing the WordPress post revisions

Here is an overview of the topics we’ll cover in this guide:

What is Post Revisions?

Post revisions is a WordPress feature that allows you to undo changes and go back to an earlier version of your posts and pages.

For each draft you are working on, WordPress automatically saves a temporary revision. This type of revision is called auto-save.

WordPress stores an auto-save every 60 seconds. It also automatically replaces the older version with the new auto-save.

Autosave revisions in WordPress

The autosave feature helps you restore the content if something goes wrong before you can save it. For example, if your browser crashed or your computer hanged while writing, then you can restore your latest draft from the autosave.

WordPress also saves post revisions each time a user clicks on the save, update, or publish button. Unlike auto-saves, these revisions are permanently stored in the WordPress database.

You can locate, browse, and revert back to any of these revisions from the post edit screen.

Why You Should Use Post Revisions

Almost every WordPress user can benefit from post revisions. Writing great content requires a lot of tweaking and edits. Post revisions allow you to see your process and take a bird’s eye view of how your post has evolved.

You can then switch between different states of your draft, make changes, and make your article perfect for publishing.

For multi-author WordPress sites, post revisions allow editors to easily manage the work of multiple authors. You can see who made changes to an article, what changes they made, and so on.

That being said, let’s take a look at how to use post revisions to improve your WordPress posts and pages.

How to use Post Revisions to Undo Changes in WordPress

WordPress displays the number of revisions under the ‘Document’ panel on the post/page edit screen.

You can find that on the right-hand side of your post editor screen. Clicking on the ‘Revisions’ will take you to post revisions screen.

Post revisions in WordPress

The post revision screen will show you the latest revision of the post with a scrollbar on top. Sliding the button on the scroll bar will take you to earlier revisions of the post.

Switching between post revisions

Changes made in each revision will be highlighted in green and pink colors. On the top, you can see the user who made these changes, time, and other information.

WordPress will also let you know if a revision is an autosave or a draft.

Restore autosaves aswell as revisions

You can use the next and previous buttons to move around revisions.

Plus, you can check the box on top that says ‘Compare any two revisions’. Doing so will split the scrollbar button into two, and you can take each button to a different revision and compare the difference between two distant revisions.

Compare any two revisions

To restore a revision, you can simply click on Restore This Revision or Restore This Autosave button.

WordPress will restore the selected revision as your current post revision, and you can then save it as a draft.

Restore revision point

Keep in my mind that restoring to an earlier revision will not delete the latest version of your post. Instead, WordPress will store it in the database as another revision.

Using post revisions with Classic WordPress editor

In case you haven’t upgraded your WordPress to Gutenberg and still using the Classic Editor, then you’ll find the post revisions in the publish meta box on the right panel of the post/page edit screen.

Browsing post revisions in classic editor

To view the post revisions, you can simply click the ‘Browse’ link next to the number of revisions. Apart from this, the post revisions work similarly in both the Classic Editor and Gutenberg.

Limiting Post Revisions in WordPress

All post revisions are stored in your WordPress database. Due to this, many users worry that too many revisions can slow down their websites.

It is not true.

WordPress skips post revisions when making database calls on the front end. It only looks for revisions on the post edit screen, or when you are actually browsing revisions.

You can still control and limit post revisions in WordPress. We’ll show you two different methods to do that you can choose one that best suits you.

1. Limit post revisions in WordPress using plugin

The easiest way to manage WordPress post revisions is by using a plugin. This allows you to control revisions from the WordPress admin area.

First thing you need to do is install and activate the WP Revisions Control plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Settings » Writing page and scroll down to WP Revisions Control section.

WP Revisions Control settings

From here you need to enter the number of revisions you want to store for each post type and then click on the ‘Save Changes’ button to store your settings.

WP Revisions Control will now limit the post revisions stored in your WordPress database.

The plugin also allows you to delete revisions for an individual post. Simply edit the post where you want to delete revisions and scroll down below the editor.

Purge revisions

You can limit the revisions for this post only or delete them by clicking on the ‘Purge these revisions’ button.

2. Limit WordPress post revisions manually

WordPress allows you to control how many revisions you want to keep for an article. To limit post revisions, simply add this code to your WordPress site’s wp-config.php file.

define( 'WP_POST_REVISIONS', 10 );

Don’t forget to replace 10 with the number of revisions you want to keep for each post.

How to Delete Old Post Revisions in WordPress

Old post revisions are perfectly harmless, and you don’t need to delete them in most cases. However, if you have a very large website with thousands of articles, then deleting old post revisions can help you reduce backup sizes.

First, you’ll need to install and activate the WP-Optimize plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, go to WP-Optimize » Database page and check the box next to ‘Clean all post revisions’ option.

Clean post revisions

Now click on the ‘Run optimization’ button to delete all post revisions. You can uninstall the plugin after you have deleted the revisions.

Once you have cleaned up revisions, feel free to uninstall and delete the plugin.

Deleting WordPress post revisions via phpMyAdmin

Advanced users can also delete WordPress posts revisions via phpMyAdmin.

First, make sure that you have created a complete WordPress database backup.

After that, simply login to your WordPress hosting control panel and click on the phpMyAdmin icon.

Next, you need to select your WordPress database from the left column. PhpMyAdmin will now display tables in your WordPress database.

PhpMyAdmin

After that, you need to click on the SQL tab from the top menu.

This will load phpMyAdmin’s SQL interface. From here you can manually run commands on your WordPress database.

You need to enter the following code.

DELETE FROM wp_posts WHERE post_type = "revision";

Don’t forget to replace wp_ with your own WordPress database prefix. After that, click on the Go button to run the command.

Deleting revision via MySQL

PhpMyAdmin will now delete all revisions from your WordPress database.

Note: Deleting revisions will not stop WordPress from saving revisions for your future posts.

How to Completely Disable WordPress Post Revisions

We don’t recommend disabling WordPress post revisions. However, some users may want to disable revisions to reduce their WordPress database size.

The easiest way to do this is by installing Disable Post Revision plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, go to Settings » Writing page and select the post types where you want to disable revisions feature.

Disable revision plugin

Don’t forget to click on the save changes button to store your settings.

If you don’t want to use the plugin, then you can also do the same thing manually by adding this code to your wp-config.php file.

define('WP_POST_REVISIONS', false );

This code disables WordPress post revisions feature on your website. It will still allow WordPress to save one autosave and one revision in your browser storage.

We hope this article helped you learn how to use WordPress post revisions to undo changes and how to manage post revisions for larger sites. You may also want to see our beginners guide on managing your editorial workflow in WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post WordPress Post Revisions Made Simple: A Step by Step Guide (2019) appeared first on WPBeginner.