bbp_get_forum_type( int $forum_id )

Return the type of forum (category/forum/etc.


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_get_forum_type( $forum_id = 0 ) {
		$forum_id = bbp_get_forum_id( $forum_id );
		$retval   = get_post_meta( $forum_id, '_bbp_forum_type', true );

		if ( empty( $retval ) ) {
			$retval = 'forum';
		}

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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