WordPress Wiki - Auto shutoff comments

Found this gem on the Wordpress Wiki: Auto shutoff comments. It includes code that you can use to create a plugin to automatically close comments after a set number of days - handy for keeping those evil spam roaches at bay.

I just copied the second block of text (the one by Scott Hanson) into a file called "Autoclose.php" and uploaded it into my Wordpress plugins directory. Went to my admin console and activated the plugin, and it seems to work just fine! At least this will keep the roaches confined to a small subset of posts on this weblog, instead of letting them roam unfettered over the 476 posts accumulated over the years...

comments powered by Disqus