Don’t save comments containing a URL
-
I’m having issues with comment spam. It’s pretty easy to tell which comments are spam because I removed the URL field from my theme… So any comments with a URL were clearly posted by a spambot that isn’t using the themes comment form.
Is there a way to intercept comments in my functions.php file? I’m looking for a hook where I can do some logic like if(url exists in comment){don’t save comment}else{save comment}. It should be a simple fix, but, I’m having a hard time finding where this occurs.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Don’t save comments containing a URL’ is closed to new replies.