auto-moderate plugin?
-
I have installed Scott Hansen’s auto-close comments plugin and like the way it works, but I was wondering if there is a way to modify it so that instead of closing comments after a certain day, it sends them to auto moderation after XX days. Perhaps changing this query:
$wpdb->query("
UPDATE $tableposts
SET comment_status = 'closed'
WHERE comment_status = 'open'
AND post_status = 'publish'
AND post_date < '$date'
");to something like this”
SET comment_status = 'moderated'
I know there are already a fewauto-mod plugins but most of those take into account the date of the last comment, not the date of the post. Also, the above linked plugin apparently doesn’t work nicely with Akismet.
I’m no good with writing code. Any ideas would be greatly welcomed.
- The topic ‘auto-moderate plugin?’ is closed to new replies.