Filtering forbidden words in WordPress

One functionality of the old forums of all life that is essential is the filters of forbidden words those that, if a user writes them in a message they are automatically blocked by the system.

Interestingly, despite the enormous growth of WordPress, thanks in part to its comment system that makes it active almost like a forum, to have a filter system of forbidden words was something of the most requested by the users and not always available.

This is over, because with the plugin WP Content Filter you can easily define which words are they will block, being replaced by asterisks. In this way, if you add the word "press" in the field of forbidden words, it will appear as "*****". Now, as you may have guessed, this has a danger, and that is if you write someone in a comment or where "WordPress" would appear as "Word *****", so be conscientious with which words you choose to block. [19659003]

For the rest, the plugin is very simple . In your settings screen you have a field to include the forbidden words (separated by commas) and then a series of configurations of how you want it to behave and where the filter will apply, being able to choose to filter in practically all parts, namely …

  • Entries
  • Recent ticket entries from the sidebar
  • Title entries
  • Comments [19659007] Widget of recent comments from the sidebar
  • Authors of comments
  • Tags
  • Tags cloud

As you see, very complete and, above all, useful and effective, great to remove hobbies to the spammers and heavy of the autodrome and things like that that there is always.

Try it and tell us that.

NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you:

Word Counter

Although the WordPress administration panel currently informs us of the number of words used in an article how about showing this information to your readers? There are several situations in which this can be interesting, you choose the reason.

The process is not complicated, it only goes through a couple of modifications in your active theme. Let's go to it …

function counting_words ( $ str ) {

$ words = 0 [19659006];

$ str = eregi_replace ( "+" "" [19659006] $ str ) ;

$ array = explode ( ] "" $ str ) ;

for ( $ i ] = 0 ; $ i < count ( $ array ) ; $ i ++ )


if ( eregi ( ] "[0-9A-Za-zÀ-ÖØ-öø-ÿ]" , $ array [ $ i ] ) )

$ words