Title: Forums are not filtered
Last modified: May 19, 2017

---

# Forums are not filtered

 *  Resolved [sumurai8](https://wordpress.org/support/users/sumurai8/)
 * (@sumurai8)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/forums-are-not-filtered/)
 * It seems like the filter `bbp_before_has_forums_parse_args` is no longer executed
   and been replaced by `bbp_parse_args`, resulting in the code of `private_group_forums(..)`
   no longer being executed.
 * This means that all forums are displayed for all users, regardless of the settings
   used. When clicking the forum a 404 error is displayed.

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

 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/forums-are-not-filtered/#post-9148782)
 * hmm – you’ll need to help me on this one
 * 1. I presume you mean on upgrade from 3.4.8 to 3.4.9 ??
 * the filter is still there in forum_filters on 3.4.9
 * add_filter(‘bbp_before_has_forums_parse_args’, ‘private_groups_forums’, 10, 2);
 * can you point to where this has changed for you?
    -  This reply was modified 9 years, 1 month ago by [Robin W](https://wordpress.org/support/users/robin-w/).
 *  Thread Starter [sumurai8](https://wordpress.org/support/users/sumurai8/)
 * (@sumurai8)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/forums-are-not-filtered/#post-9148887)
 * I am currently developing a site and did a fresh install of bbpress and your 
   plugin. I had a single forum for “group 1”, and did some tests if things were
   working correctly. I made a sockpuppet account that I explicitly did not assign
   any groups to, and had the setting enabled that it won’t try to assign any group
   either.
 * In any case, it still displayed that forum for my sockpuppet user. Placing an`
   exit;` statement in that particular function did not cause the execution to be
   stopped, which suggested that it did not run at all. I can’t find any mention
   of that filter in the bbpress code anymore, except for a deprecated warning that
   one should use `bbp_parse_args`.
 * Since I needed to change some templates I simply placed an extra check in the
   forum-loop template and continued, but when I test it now it does seem to filter
   correctly. I am not quite sure what was the underlying problem that caused a 
   hidden forum to be displayed, because I am now unable to reproduce it.
 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/forums-are-not-filtered/#post-9148969)
 * no problem – if you get the issue again, please do some back, and I’ll work with
   you to resolve

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

The topic ‘Forums are not filtered’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bbp-private-groups.svg)
 * [Private groups](https://wordpress.org/plugins/bbp-private-groups/)
 * [Support Threads](https://wordpress.org/support/plugin/bbp-private-groups/)
 * [Active Topics](https://wordpress.org/support/plugin/bbp-private-groups/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bbp-private-groups/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bbp-private-groups/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Robin W](https://wordpress.org/support/users/robin-w/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/forums-are-not-filtered/#post-9148969)
 * Status: resolved