Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.