bbp_get_group_forums_root_id( $default )

Return the grop forums root parent forum id

Description

Parameters

$default

(Required) bool Optional. Default value 0

Return

(int) The post ID for the root forum

Source

File: bp-forums/core/options.php

	function bbp_get_group_forums_root_id( $default = 0 ) {
		return (int) apply_filters( 'bbp_get_group_forums_root_id', (int) get_option( '_bbp_group_forums_root_id', $default ) );
	}

Changelog

Changelog
Version Description
bbPress (r3575) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.