WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a list of words that I placed in my blacklist_key option values update_option( 'blacklist_keys', $words);. But I still can make a comment with such words. Any ideas?

I can't answer my question yet, so here it is. There is no clean way to do this. You have to use a multiline string such that:

$words = 'word1
share|improve this question

I just did a quick test and the comment blacklist appears to be ignored for logged in administrators (possibly other roles). It does effectively block comments when logged in as a subscriber. I suspect that that is the behavior you are seeing.

share|improve this answer
No I was able to see them as a subscriber. Now I was just reading link and I realized that my variable $words is an array of strings not a string. Im gonna change this, hopefully it will work. – LouieV May 6 '13 at 14:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.