Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the gVectors community!

Merry Christmas and Happy Holidays! 🎄

[Solved] Change limit for comment edition (from 15 to 5 minutes)

3 Posts
2 Users
0 Reactions
2,403 Views
(@dooomer)
Active Member
Joined: 6 years ago
Posts: 19
Topic starter  

Hello, is there any way/hack to change default time limit for comment editing? 15 minutes is more than enought, so I would like to set it to 5 minutes for example 🙂



   
Elvina
(@elvina)
Support
Joined: 6 years ago
Posts: 1403
 

Hi @dooomer

Please follow the steps below: 

1. Open the settings-form.php file  in the /wp-content/plugins/wpdiscuz/options/options-layout/ folder.

2. Find the following line  (line 183)

<option value="900" <?php selected($wc_comment_editable_time, '900'); ?>>15 <?php _e('Minutes', 'wpdiscuz'); ?></option>

3. Replace with this one:

<option value="300" <?php selected($wc_comment_editable_time, '300'); ?>>5 <?php _e('Minutes', 'wpdiscuz'); ?></option>

Important: the changes will be lost after wpdiscuz update. You should keep somewhere locally the code.

We will also take into consideration to add the 5-minute limitation for the "Allow comment editing for" option.



   
(@dooomer)
Active Member
Joined: 6 years ago
Posts: 19
Topic starter  

Dear Elvina,

thank you for your amazing support. I will save these code changes, but it will be cool if you can add 5 minutes option to the settings for future updates 🙂



   
Share:
Scroll to top