Shouldn't this remove the capability to delete a post? Even if I remove the delete_posts capability for an editor, he still can trash a post and then delete i permanently. That can't be right.

How do you remove the capability to trash/delete a post?

  • Nice with a down vote. Even nicer with an explanation.
    – Joakim
    Jun 6, 2011 at 11:32
  • There are other, related capabilities which you might want to remove (delete_published_posts for example, see here: codex.wordpress.org/…). I don't know why you need this but make sure that you remove and keep the right set of capabilities (e.g. forbid deleting others or published posts but allow deleting own, unpublished one).
    – molnarm
    Jun 6, 2011 at 11:40
  • I want to remove the capability for editors to trash/delete posts. And by removing delete_posts, that should affect the other capabilities to such as delete_published_posts etc. But there is no documentation on this, just me thinking that would be the most obvious way for capabilities to work.
    – Joakim
    Jun 6, 2011 at 12:12
  • But event if i remove all capabilities (delete_posts, delete_others_posts, delete_published_posts and delete_private_posts) the editor can still trash/delete posts.
    – Joakim
    Jun 6, 2011 at 12:14
  • I've solved it for now by hiding Elements via CSS and JavaScript.
    – Joakim
    Jun 10, 2011 at 9:02

1 Answer 1


Maybe this was some conflict plugin/functions.php/theme/WP-version...

I just duplicated the editor role with User Role Editor, removed all the delete_*_posts capabilities and the user cannot delete a post.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.