I would like to filter names on my comments section.
For example, if a user type a name listed on my black-list, the comment will not be saved or will be marked as spam. Any idea on where to start or if it’s even possible?
I would like to filter names on my comments section.
For example, if a user type a name listed on my black-list, the comment will not be saved or will be marked as spam. Any idea on where to start or if it’s even possible?
You must be logged in to post a comment.
I don’t know if this is what you’re looking for, but WordPress already has a plugin for Spam protection called Askimet Just check if you have it installed in your system.
Yes Askimet is a good option, but if some one want to do it manually ( for some reason ) you can use
wp_insert_comment
for this purpose.do something like this.