Skip to:
Content

bbPress.org

Changeset 4407


Ignore:
Timestamp:
11/13/2012 07:26:43 AM (9 years ago)
Author:
johnjamesjacoby
Message:

BuddyPress Group Forums:

  • Suppress hierarchical group forums for now, for feature parity with existing BuddyPress forums.
  • See #1669.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/extend/buddypress/group.php

    r4399 r4407  
    9090        // Map group forum activity items to groups
    9191        add_filter( 'bbp_before_record_activity_parse_args', array( $this, 'map_activity_to_group' ) );
     92
     93        // No subforums yet, so suppress them for now
     94        add_filter( 'bbp_get_forum_subforum_count_int', array( $this, 'no_subforums_yet' ) );
    9295    }
    9396
     
    393396                            $forum = $forums[0];
    394397
     398                            // Suppress subforums for now
     399                            add_filter( 'bbp_get_forum_subforum_count', '__return_false' );
     400
    395401                            // Set up forum data
    396402                            $forum_id = bbpress()->current_forum_id = $forum->ID;
     
    400406
    401407                            <?php bbp_get_template_part( 'content', 'single-forum' ); ?>
     408
     409                            <?php
     410
     411                            // Remove the subforum suppression filter
     412                            remove_filter( 'bbp_get_forum_subforum_count', '__return_false' );
     413                           
     414                            ?>
    402415
    403416                        <?php else : ?>
     
    10051018
    10061019        return $args;
    1007     }
     1020    }   
    10081021}
    10091022endif;
Note: See TracChangeset for help on using the changeset viewer.