Have you ever accidentally published a post on your blog? It can happen to any of us. Even the most experienced bloggers have accidentally hit the publish button. Recently one of our readers reached out to us asking for a good way to avoid accidental publishing in WordPress. In this article, we will show you how to avoid accidental publishing in WordPress.
Accidental publishing can become a major problem if you have automated the process of sharing posts on social media and newsletter. By the time you realize your mistake and unpublish the article, it is already shared on social networks, sent to email subscribers, and may even get indexed by search engines. If you want to avoid this, then follow this tutorial.
First thing you need to do is install and activate the Publisher Confirmation plugin. The plugin works out of the box, so there are no settings for you to configure.
Now when you hit the Publish button, this plugin will show a dialog box asking ‘Are you SURE you want to publish this post?’. Press OK if you are ready to publish the post, or press Cancel if you accidentally clicked the publish button.
Publish Confirmation plugin hasn’t been updated for more than two years. It works fine with the latest WordPress (3.8.1 at the time of writing this article) and probably don’t need updating. However we understand that some users might feel uncomfortable using an old plugin. Since the basic concept behind this plugin is extremely simple, you can implement it by simply pasting the following code in your theme’s functions.php file or in a site-specific plugin.
That’s all, you are now protected from accidentally publishing posts on your WordPress blog.