I’d like to make my articles editable at the front-end for any reader who visits the site. (More like a wiki). I don’t really want to trouble them through the registration process. I have no idea how to dynamically enable a form associated with the article and the paragraph they are editing. How to create a such a function or is there any readily availability plugin that does this?

I’ve referred this question: How to enable suggested edits?

It uses comment form to do the job. Unfortunately, I’m using Disqus as my commenting platform. Is there any work around?

1 Answer
1

By default the user can only edit their comments for the first 5 minutes. After that, the user is not able to edit their comment. If you want to change this time period, then this plugin allows you to do so using a filter. Simply add the following code in your theme’s functions.php file or in a site-specific plugin like this:

add_filter( 'sce_comment_time', 'edit_sce_comment_time' );

function edit_sce_comment_time( $time_in_minutes ) {

return 10;

}

In this code above, we have simply increased the time limit set by the plugin to 10 minutes however you can modify it to anything else that you like. Since the purpose is to allow users to fix small grammatical errors or taking back something right away, in our opinion it is best to not to set the limit higher than 30 minutes.

Leave a Reply

Your email address will not be published. Required fields are marked *