BBP_Forums_Group_Extension::display( int $group_id = null )
The primary display function for group forums
Description Description
Parameters Parameters
- $group_id
-
(Optional) ID of the current group. Available only on BP 2.2+.
Default value: null
Source Source
File: includes/extend/buddypress/groups.php
public function display( $group_id = null ) { // Prevent Topic Parent from appearing add_action( 'bbp_theme_before_topic_form_forum', array( $this, 'ob_start' ) ); add_action( 'bbp_theme_after_topic_form_forum', array( $this, 'ob_end_clean' ) ); add_action( 'bbp_theme_after_topic_form_forum', array( $this, 'topic_parent' ) ); // Prevent Forum Parent from appearing add_action( 'bbp_theme_before_forum_form_parent', array( $this, 'ob_start' ) ); add_action( 'bbp_theme_after_forum_form_parent', array( $this, 'ob_end_clean' ) ); add_action( 'bbp_theme_after_forum_form_parent', array( $this, 'forum_parent' ) ); // Hide breadcrumb add_filter( 'bbp_no_breadcrumb', '__return_true' ); $this->display_forums( 0 ); }
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |