bbp_get_forum_subforum_count( int $forum_id, boolean $integer = false )

Return total subforum count of a forum


Description Description


Parameters Parameters

$forum_id

(Optional) Forum id

$integer

(Optional) Whether or not to format the result

Default value: false


Top ↑

Return Return

(int) Forum's subforum count


Top ↑

Source Source

File: includes/forums/template.php

	function bbp_get_forum_subforum_count( $forum_id = 0, $integer = false ) {
		$forum_id    = bbp_get_forum_id( $forum_id );
		$forum_count = (int) get_post_meta( $forum_id, '_bbp_forum_subforum_count', true );
		$filter      = ( true === $integer )
			? 'bbp_get_forum_subforum_count_int'
			: 'bbp_get_forum_subforum_count';

		return apply_filters( $filter, $forum_count, $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.