Skip to:
Content
Pages
Categories
Search
Top
Bottom

Syncing WP Content Filter between Buddypress and WordPress

  • Profile photo of neelesh7
    neelesh7
    Participant

    @neelesh7

    Hi guys,

    My site is on localhost, using WordPress version 3.7.1 and Buddypress 1.8.1.

    I have downloaded WP Content Filter (to omit bad language and racial slurs) which works great but doesn’t integrate with Buddypress.

    I found some code and added it to wp-content-filter.php and it does help.

    add_filter(‘bp_get_the_topic_title’, ‘pccf_filter’);
    add_filter(‘bp_get_the_topic_post_content’, ‘pccf_filter’);

    // Activity title & content
    add_filter(‘bp_get_activity_action’, ‘pccf_filter’);
    add_filter(‘bp_get_activity_content_body’, ‘pccf_filter’);

    However, it does not filter out the comments made in the activity stream post comments, group post comments, member post comments and members view status updates.

    Your help is much appreciated.

  • The topic ‘Syncing WP Content Filter between Buddypress and WordPress’ is closed to new replies.
Skip to toolbar