How are certain words allowed in comments?


I want to improve WordPress blacklist. WordPress suspends the comment when it catches a word added to the blacklist. But this creates some problems. Because wordpress makes a match. For example, let’s just blacklist the word “press”, in this case, if the user uses the word “WordPress”, comment will be trashed.

In this example only the word “Press” should be banned. An exception must be added and the word “wordpress” must be allowed. Briefly for matching words, I want to add allowed words. In other words, I want to make a special list that is also allowed for words that are inserted in the blacklist filter.

How can we do such a thing in Functions.php?

A. Muller 4 months 0 Answers 18 views 0

Leave an answer