Beginner's Guide for WordPress / Start your WordPress Blog in minutes

How to Allow Users to Edit their Comments in WordPress

Do you want to allow users to edit their comments in WordPress?

By default, WordPress doesn’t allow users to edit their comments, which can be frustrating if the person spots a spelling or grammar mistake after posting their comment.

In this article, we’ll show you how to allow users to easily edit their comments in WordPress for a short period of time.

How to Allow Users to Edit their Ccomment in WordPress

Why Allow Users to Edit or Delete their Comments?

Most WordPress websites allow users to submit comments on their articles after providing their name and email address. However, users can’t edit or delete their comment by default.

Sometimes, people want to make changes after clicking on the ‘Post Comment’ button.

The most common scenario is fixing simple mistakes like a spelling or a grammatical error. Some users may also want to modify their comments to add or remove something.

There may also be some rare cases where a user changes their mind about posting a comment, and wants to delete it completely.

Whatever the case may be, you may want to allow people to edit or delete their comments for a short period of time, such as the first 5 or 10 minutes.

This time limit is important, as it stops link builders and spammers from abusing the comment section by adding links to comments that you’ve already approved.

If a comment gets lots of replies, then the time limit stops people from changing parts of the comment thread so it no longer makes sense to other readers.

That being said, let’s take a look at how to easily allow users to edit their comments.

Video Tutorial

Subscribe to WPBeginner

If you’d prefer written instructions, just keep reading.

Allowing Users to Edit Comments in WordPress

The easiest way to allow users to edit comments in WordPress is by using the Simple Comment Editing plugin. This simple plugin works out-of-the-box and lets you set your own time limit.

First thing you need to do is install and activate the Simple Comment Editing plugin. You can see our step by step guide on how to install a WordPress plugin for detailed instructions.

Upon activation, the plugin will allow your users to make changes to their comments for the first 5 minutes. After 5 minutes, users can no longer edit their comments.

You can change this time limit by going to Settings » Simple Comment Editing in your WordPress admin area.

The Simple Comment Editing settings

On the settings page, you can change the time in the text field to anything you like.

However, we recommended setting the limit to under 30 minutes since we want to allow users to fix errors right away.

If you do change the time limit, then make sure you click on the Save Options button to store the changes.

Next, we recommend testing the plugin by posting a comment on any of your posts. After submitting the comment, you’ll see a ‘Click to Edit’ link and a countdown timer below the comment text. The timer shows how much time you have left to edit the comment.

WordPress comment click to edit option

To modify your comment, select the ‘Click to Edit’ link and make your changes.

Just be aware that this plugin doesn’t let you change the name, email, or website URL you originally entered when posting the comment.

Edit comment with countdown timer

When you’re done, click on the ‘Save’ button to update the comment.

If you want to delete the comment, then go ahead and click on the ‘Delete’ button instead. This will open an popup asking you to confirm that you want to delete your comment.

Allow users to delete their comments

Go ahead to click on ‘OK’ to remove the comment.

We hope that this article helped you to learn how to allow users to edit their own comments in WordPress for a short period of time. You may also want to see our proven ways to make money online blogging and how to increase your blog traffic.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit – a collection of WordPress related products and resources that every professional should have!

Reader Interactions

13 CommentsLeave a Reply

  1. Does this work with or any other WPComment-Plugin besides the built-in WP functionality?

    • You would need to reach out to the plugin’s support for what other plugins it currently integrates with.

      Admin

  2. A good article indeed. But in the sentence:
    “There can also be some rare cases where a user may think about deleting their comment because what they wrote was is completely out of context”.
    There are two mistakes.
    A user should not be followed by their comments rather his or her comments.
    Secondly “was” and “is” should not have been used together.
    Thanks.

  3. The article says, “If your site has registered users, then you can easily leverage the built-in user roles and capabilities to allow some users the ability to edit their own comments.”

    Our site does require registration, so this is the solution I’m looking for. I’m using Pods to manage user roles and capabilities, but I couldn’t find the name of the capability to modify in order to allow this.

    Any tips?

    Thanks!

  4. Great idea to allow people a few minutes to edit their comments. :)

    Thanks for sharing.

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.