post-page

How To Disable Delete Post Functionality For Everyone Except Administrator

6
responses
by
 
on
November 25th, 2009
in
WordPress FAQs, WordPress Tips

WordPress has a pretty decent role management in place, which allows you to create users and assign them certain privileges and functionality. However, there are few things which you cannot do right now with it. For example, creating new roles, modifying role privileges and so on.

The Role Manager plugin fills in that void and adds a very robust role management interface to WordPress. Though I won’t go into much detail about the plugin, I just wanted to highlight a simple trick, using which you can disable delete functionality for post and pages and retain it with only the administrator of the blog.

Disabling delete functionality may be done for several reasons, specifically on multi-author blogs. However, my sole reason for doing this is that “Precaution is better than Cure”.

To disable delete functionality for post and pages, install the Role Manager plugin (if you haven’t done it already) and click on the Roles link under the Users menu, in the admin dashboard sidebar.

disable_delete_posts_feature

Once you are on the Roles page, browse through the roles and click on the green checkmark (if they appear) next to the privileges highlighted in the screenshot above. Don’t do this for the administrator role though.

Once all the checkmarks have turned to red cross marks, the delete functionality will be disabled for the respective roles.

Role Manager is an excellent plugin and will come in pretty handy for multi-author blogs. I have just highlighted one of the many things you can accomplish with this plugin, so go ahead and give it a try.

heading
heading
6
Responses

 

Comments

  1. Queue says:

    I’m not overwhelmingly sure who would trust someone enough to be an author – and thus have the ability to post ANYTHING in front of their entire audience’s eyes – but not enough to delete something, which would most likely just be something THEY posted anyway.

  2. Marcus Hochstadt (7 comments.) says:

    Hmm… Looks like support for the Role Manager plugin had stopped more than a year ago.

    Have you ever tried the Capability Manager plugin? At least it offers much of what RM users are longing for.

    ~Marcus

  3. Viper007Bond (91 comments.) says:

    Be VERY careful with plugins that mess with capabilties. Very easy to lock yourself out of your blog.

    I’d also strongly recommend against renaming any of the roles as when WordPress upgrades itself, it uses the role names to add new capabilities that didn’t previously exist. If you rename the roles, then these capabilities won’t be added.

    In short, not for the novice.



Trackbacks/Pingbacks

  1. How To Disable Delete Post Functionality For Everyone Except Administrator…

    WordPress has a pretty decent role management in place, which allows you to create users and assign them certain privileges and functionality. However, there are few things which you cannot do right now with it. For example, creating new roles, modifyi…

  2. [...] en cuanto comentarles sobre el plugin Role Manager para WordPress, que al menos por lo que leo en Weblog Tool Collection, expandiendo la oportunidad que tiene el administrador general del sitio de autorizar o denegar una [...]

  3. [...] How To Disable Delete Post Functionality For Everyone Except Administrator [...]

Obviously Powered by WordPress. © 2003-2013

page counter
css.php