How to Create a Publish Confirmation Message on WordPress Posts – For bloggers who use the CMS WordPress platform, of course, they often experience this kind of thing, namely accidentally pressing the “Publish” button even though the writing is not completely finished or requires double checking before it is actually published, or it could be when you want to schedule or scheduling articles but instead accidentally press the publish button which results in the article being published prematurely.
In WordPress, it is equipped with a “Draft” button to temporarily save posts before publishing, with this Draft feature you can continue your writing at a later time. But even if there is a “Draft” button we may still get an error that accidentally hit the “Publish” button. It happens to myself a lot and even the most experienced bloggers accidentally hit the “Publish” button prematurely.
To minimize these errors, in this article I will show you how to avoid publishing errors in WordPress by creating a confirmation message before the article is published. Here I will share two ways, namely using plugins and manuals.
Why Do You Need to Create a Publish Confirmation Message?
The publish confirmation message is a simple feature but will be very useful for your blog. This is actually just a confirmation message that appears when you press the “Publish” button which is displayed as a pop-up message asking “Are you sure you want to publish the article now?”, And you will be given two options to choose Yes or No. It’s a simple feature like this which is an easy way to solve typos and error publishing articles on your blog.
Here are some positive benefits when you apply this method to your WordPress site:
- This feature can stop accidental publication of articles.
- This feature will be especially useful when you have multiple authors on your site as each author may not be as thorough as the other.
- This feature can prevent automatic email and article updates to social media. Many bloggers integrate their social media and email campaigns with WordPress. So, whenever there are new posts, your social media will be updated automatically, of course this will be very detrimental to you when the rudimentary articles are spread.
- Adding this feature will not affect the usability or performance of your site. It’s just an extra click before publishing a new post.
Those are some of the positive benefits that you will get when using this method, but you don’t have to do this to add a publish confirmation message to your blog. For example, if you run a blog with a single author and you never have trouble publishing articles accidentally, you might be safe. However, this feature is highly recommended for multi-author WordPress sites, to minimize risk.
1. Using the Publish confirm plugin
Using plugins Publish Confirm This is the easiest way to activate confirmation messages for WordPress. This plugin works great with posts, pages, and even custom post types. And what’s interesting is that the message will automatically stop appearing after you actually publish the post, so you don’t have to see this pop up message appear when updating your article.
You can also easily modify the message content to your liking and you can even tweak a few lines of code if you are familiar with coding because this plugin has no settings at all, so when you activate this plugin it will automatically work. .
2. Using the Manual With Code
This second method is a little more complicated and is recommended for WordPress users who are familiar with code. To do this, please copy the code below and paste it in the functions.php file in your WordPress theme or in your Child Themes. after that save and try to create a new post, and try to press publish, a pop up message will appear with the words “Are you sure you want to publish this article?”.
Those are two ways you can create a confirmation message before the article is published. You can choose the one that you think is suitable and easy to apply. Hopefully this article was useful for you and good luck. 🙂