bbp_get_private_forum_ids()

Returns the private forum ids

Description

Only private forum ids are returned. Public and hidden ids are not.

Source

File: bp-forums/forums/functions.php

function bbp_get_private_forum_ids() {
   	$forum_ids = get_option( '_bbp_private_forums', array() );

	return apply_filters( 'bbp_get_private_forum_ids', (array) $forum_ids );
}

Changelog

Changelog
Version Description
bbPress (r3007) 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.