• Resolved johndoe01

    (@johndoe01)


    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

    (@gwin)

    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

    (@johndoe01)

    OK I have to check carefully how to run the filters after these settings. I’ll keep you posted.

    Thread Starter johndoe01

    (@johndoe01)

    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.