WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

WordPress authors have permission to edit others comments on their own post. How to disable this and still allow the authors to edit their published posts?

share|improve this question
up vote 0 down vote accepted

From quick look at code the likely permissions check for that is edit_comment capability in edit_comment() function.

Your options to remove that capability roughly are:

  • customize the role with plugin, for example Members
  • customize role with code, probably using remove cap functionality
  • filter thiungs around map_meta_cap or user_has_cap if you need to achieve more elaborate logic (for example denying permission in context of specific comment, rather than comments in general)

PS not sure if this will properly omit related parts of interface, might need to deal with that separately

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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