WordPress.org

Ready to get started?Download WordPress

Forums

Make edit_published_posts not to edit comments (3 posts)

  1. Nikolas
    Member
    Posted 4 years ago #

    When you set to a role the permission edit_published_posts , a logical thing is to except the system will let the role edit his posts. But it let the user to edit his/her post's comments.
    Is there any way to make this available only to edit posts and not to comments?

    Thank you all!

  2. Nikolas
    Member
    Posted 4 years ago #

    I found this but did not found me the solution
    $user_id == $post_author || $user->has_cap('moderate_comments')

    I guess it's like removing the "if he has moderate comments capabilities" and leaving only if he is the author maybe?

    anyone?

  3. Nikolas
    Member
    Posted 4 years ago #

    didn't find anything yet..
    any help ?

Topic Closed

This topic has been closed to new replies.

About this Topic