bbp_is_forum_category( int $forum_id )

Is the forum a category?


Description Description


Parameters Parameters

$forum_id

(Optional) Forum id


Top ↑

Return Return

(bool) Whether the forum is a category or not


Top ↑

Source Source

File: includes/forums/template.php

function bbp_is_forum_category( $forum_id = 0 ) {
	$forum_id = bbp_get_forum_id( $forum_id );
	$type     = bbp_get_forum_type( $forum_id );
	$retval   = ( ! empty( $type ) && 'category' === $type );

	// Filter & return
	return (bool) apply_filters( 'bbp_is_forum_category', (bool) $retval, $forum_id );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.