bp_forums_parent_forum_id()

Return the parent forum ID for the Legacy Forums abstraction layer.

Description

Return

(int) Forum ID.

Source

File: bp-core/bp-core-functions.php

function bp_forums_parent_forum_id() {

	/**
	 * Filters the parent forum ID for the bbPress abstraction layer.
	 *
	 * @since BuddyPress 1.5.0
	 *
	 * @param int BP_FORUMS_PARENT_FORUM_ID The Parent forum ID constant.
	 */
	return apply_filters( 'bp_forums_parent_forum_id', BP_FORUMS_PARENT_FORUM_ID );
}

Changelog

Changelog
Version Description
BuddyPress 3.0.0 Supported for compatibility with bbPress 2. BuddyPress 3.0.0 Supported for compatibility with bbPress 2.
BuddyPress 1.5.0 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.