BBP sub forums list issue
-
In forum-filters.php following action is wrong
add_filter('bbp_forum_get_subforums', 'private_groups_get_permitted_subforums', 10, 1);
In bbpress, that filter added as
return (array) apply_filters( 'bbp_forum_get_subforums', $sub_forums, $r );
In your case argument of
private_groups_get_permitted_subforums
it’s wrong as you except $args but that is in 2nd position in bbpressPossible fix is
add_filter('bbp_forum_get_subforums', 'private_groups_get_permitted_subforums', 10, 2); function private_groups_get_permitted_subforums( $sub_forums, $args = '') { //code }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘BBP sub forums list issue’ is closed to new replies.