How to Prevent Authors from Deleting WordPress Posts

Having many authors on your team helps a website generate content quickly. However, sometimes posts will be deleted by the authors, Romania B2B List either accidentally or on purpose. As a result, your site could lose an important article that generates a lot of visitor traffic. This is why you need to restrict post deletion in WordPress.

Although a site-wide backup gives you the ability to recover deleted content, you shouldn’t have to perform this procedure if a single important article is deleted. Depending on the size of the site, this may take some time.

In this tutorial, I will show you how to prevent authors from deleting any WordPress post. You could go so far as to deny authors the ability to delete their own published articles.

Using Capability Manager Enhanced

Today, I’m going to introduce you to the Capability Manager Enhanced plugin. This is the same plugin used when configuring and creating custom user roles. It is a versatile tool that opens many doors for productivity and content protection.

Select Author from the list of roles. Your list is probably different from mine. It all depends on the plugins you have and if you have created custom roles. Be sure to select the correct one or you may hamper the performance of other users.

Capability Manager Enhanced is an amazing WordPress user authorization plugin. It offers the ability to modify who can do what in a myriad of situations. For example, you can allow editors to export, import, or even change themes.

Romania B2B Contact List

By using the “Create a new role” option, you can give more functionality to specific authors. Let’s say you have authors who are more trustworthy or have seniority over others. Perhaps you could give them more flexibility and improved permissions when it comes to content management.

You can also create roles to separate groups of authors. What if you have a group writing on one topic while a few other writers focus on another? This can help keep your content management organized.

Manually prevent authors from deleting posts

Instead of using a plugin, you can use coding to prevent authors from deleting posts in WordPress. If you are not used to making adjustments in PHP, I suggest you use the plugin mentioned above. It doesn’t take much to crash a website if you enter the wrong coding bits.

That being said, let me show you how to make changes in WordPress.

Navigate to your website’s functions.php file. You have several methods to do this. You can use FTP apps like FileZilla, use the file manager in cPanel or through the WordPress editor. For this tutorial, I’m just going to load the editor so I can demonstrate the code.

Leave a comment

Your email address will not be published.