Hiyya! Well..uhm..as the title says.. Can i completely disable and delete the comments function in Wordpress. I have downloaded the latest version and I'm making a non-blog site but using Wordpress (if that makes sense). I figured out how to disable comments in the CP, but I dont want that, just a total deletion of this function on my site so there is absolutlely no trace of comments. Thanks for any help! Regards, Debra.
The easiest way is to close them through the control panel, then find your theme's comments.php file, search for "Comments are closed" and replace it (remove that line if you want or just change the text to a space if it affects your layout).
Actually, the easiest way (and what Debra's looking for) is to find this command in the template file: comments_template(); and remove it along with whatever HTML surrounds it (like DIV or P tags, etc.). Then it doesn't matter if commenting is on or off because the function will never be called.
I think in this way you can however post a comment sending a proper HTTP post request. @fireworks-styles Have a look here http://ckunte.com/archives/2006/06/06/closing-all-comments-in-wordpress
I assumed WP would have some kind of code to check who the referrer was to prevent direct requests, but skimming thru the comments functions I didn't see any, so you may be right. Still, I believe my suggestion is the easiest to remove the comments from the templates, then I'd turn off commenting for good measure.