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

How can I allow users to edit only their comments? I tried some plugins like "WP Ajax Edit Comments" but users could edit all comments.

share|improve this question

1 Answer 1

As far as I know the edit_comment capability will give the user the possibility to edit their own comments only. So, try adding this to your functions.php:

$user_role = get_role('subscriber'); // get the user role you want to edit
share|improve this answer
thank you. now users can edit all comments in thier posts and also they couldn't edit their comments in other users' posts? – I left StackExchange Feb 28 '13 at 13:41
Excuse me, not sure I understand you. Users can now edit all comments (also from other users) in their posts, but cannot edit their own comments in other users posts? Is that what you mean? Also, exactly what are you trying to achieve? Maybe I misunderstood: are you trying to get authors to manage their posts's comments, or getting subscribers edit their own comments? – Sunyatasattva Feb 28 '13 at 13:49

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.