I am using wp site where registered users have authors roles.

I want authors to have permissions to edit their own comments. Now only admin user have capability to edit comments and even editors do not have this capability.

I tried plugins like Role Scoper or Members but they don't have this capabilities

  • If you are looking for a plugin this is going to be off-topic. Are you talking about edit capability on the front end or the back end, or both?
    – s_ha_dum
    Commented Dec 5, 2013 at 14:33
  • plugin is good but i can use functions.php as well in back end is more important (both also sounds great)
    – moonvader
    Commented Dec 5, 2013 at 18:34

2 Answers 2


The role needs "edit_post" capability to edit comments (the reason beeing that comments are posts for wordpress)
--> do your authors have "edit_post" capability?
this enables the role to edit posts also, which might not be desired.

Wordpress capabilites are weird. There exists a meta capability 'edit_comment', but its not very intuitive. As far as I understand it currently, you can not directly assign it to a user (you can assign "edit_comment" capability, but it seems to be treated as custom created capability and therefore ignored..

I tried to let my subscribers edit their own comments, but

$subscriber= get_role('subscriber'); 

seems to have no effect for me, you can try it for authors but it probably won't do the trick. )

read this: http://wordpress.org/support/topic/edit-comment-not-working


You could try with this plugin: https://wordpress.org/plugins/simple-comment-editing/ and then add a little trick to get more editing frame time:

    add_filter( 'sce_comment_time', 'edit_sce_comment_time' );
function edit_sce_comment_time( $time_in_minutes ) {
    return 10; // Here you change the time period after that, the user is not able to edit their comment.

Your Answer

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

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