WordPress - Function to delete comments if url present?
Posted on 2011-10-02
I have my wordpress comments section set up so that there is no input box for the commenter's website.
So I know, for sure, that if there is a value for 'url' in a comment - it's spam, some bot or something.
Is there a way to add something (to functions.php perhaps?) that will delete or otherwise ignore comments if they contain a value for 'url'?
I realize this will not get rid of someone putting a url in the main body of the comment. That's ok. I just know it's a bot though if there is a url value, so those can be gotten rid of without any human review.
Thanks for any thoughts on how to do this,