Title: Profanity Filter Compatible.
Last modified: March 12, 2021

---

# Profanity Filter Compatible.

 *  Resolved [johndoe01](https://wordpress.org/support/users/johndoe01/)
 * (@johndoe01)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/profanity-filter-compatible/)
 * Greetings.
    This is another issue (that my client wants to implement). The client
   wants that the adverts get a profanity filter. I know thar WP has plugins for
   it but i tested three of them (Word Replacer, WP Content Filter and Web Purify[
   which i could not run because requires an API which is Paid]) and neither did
   the job (of mask the profanity word on the ad body).
 * Do you know about a plugin that can work with WP adverts in a transparent form?
 * Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/profanity-filter-compatible/#post-14182224)
 * Hi,
    i am not aware of any profanity filter plugin so i can’t tell if there is
   something that will work with WPAdverts.
 * One thing you can try is to change the priority with which adverts_the_content
   filter is run, you can do that by adding the code below in your theme functions.
   php file
 *     ```
       add_action( "init", "set_priority_for_wpadverts_the_content", 20 );
       function set_priority_for_wpadverts_the_content() {
           remove_filter('the_content', 'adverts_the_content', 9999);
           add_filter('the_content', 'adverts_the_content', 10 );
       }
       ```
   
 * If the code will not work try also changing the “10” to “5”.
 * One other way to apply the profanity filter to Ad details pages would be to use
   a code like this
 *     ```
       add_filter( "adverts_the_content", "PROFANITY_FILTER", 1000 );
       ```
   
 * where PROFANITY_FILTER is a name of the function that will filter the content,
   so to find out the actual filter name you would need to ask the plugin support.
 *  Thread Starter [johndoe01](https://wordpress.org/support/users/johndoe01/)
 * (@johndoe01)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/profanity-filter-compatible/#post-14184661)
 * OK I have to check carefully how to run the filters after these settings. I’ll
   keep you posted.
 *  Thread Starter [johndoe01](https://wordpress.org/support/users/johndoe01/)
 * (@johndoe01)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/profanity-filter-compatible/#post-14260955)
 * Well i found the plugin WP Content Filter. When is Stock, censors the Title only.
   
   I had to do some plugin customizations on it so it can cover the ad content, 
   but i’m having a hard time with the excerpt (custom field).
 * Since the details correspond to their support page, i guess that will work for
   me until i figure out the excerpt conflict.
 * Shame that their forum is 2 years frozen

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Profanity Filter Compatible.’ is closed to new replies.

 * ![](https://ps.w.org/wpadverts/assets/icon-256x256.png?rev=2423472)
 * [WPAdverts - Classifieds Plugin](https://wordpress.org/plugins/wpadverts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpadverts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpadverts/)
 * [Active Topics](https://wordpress.org/support/plugin/wpadverts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpadverts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpadverts/reviews/)

## Tags

 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [profanity](https://wordpress.org/support/topic-tag/profanity/)

 * 3 replies
 * 2 participants
 * Last reply from: [johndoe01](https://wordpress.org/support/users/johndoe01/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/profanity-filter-compatible/#post-14260955)
 * Status: resolved