i need to limit numbers of comments user can post per time
as example: user can post only one comment / 24Hours
i try following function code
"function dam_the_flood( $dam_it, $time_last, $time_new ) {
if ( ($time_new - $time_last) < 86001 ) // time interval is 86001
return true; // seconds
return false;
}
add_filter('comment_flood_filter', 'dam_the_flood', 10, 3);"
it works with other website not use wp-discuz
but not with wp-discus
i hope can fix that issue
thanks
Hi @abdoo22,
Please check out the wpDiscuz "Limit Comments per User" option. It's located in the Dashboard > wpDiscuz > Settings > Comment Moderation admin page.
More info here: https://wpdiscuz.com/docs/wpdiscuz-7/plugin-settings/comment-moderation/#limit-comments-per-user
Hello,
thank you for replay
i know this option but it limit comments for user lifetime
i need to limit for some times