Let readers suggest edits from the frontend

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 Comment