bbp_get_forum_types( int $forum_id )

Return an associative array of forum types


Description Description


Parameters Parameters

$forum_id

(Optional) Forum id.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/forums/functions.php

function bbp_get_forum_types( $forum_id = 0 ) {

	// Filter & return
	return (array) apply_filters( 'bbp_get_forum_types', array(
		'forum'    => _x( 'Forum',    'Forum accepts new topics', 'bbpress' ),
		'category' => _x( 'Category', 'Forum is a category',      'bbpress' )
	), $forum_id );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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