bbp_forum_parent_id( int $forum_id )

Output parent ID of a forum, if exists

Description

Parameters

$forum_id

(Required) Forum ID

Source

File: bp-forums/forums/template.php

671
672
673
function bbp_forum_parent_id( $forum_id = 0 ) {
    echo bbp_get_forum_parent_id( $forum_id );
}

Changelog

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