BBP_Forums_Group_Extension::is_single_forum( bool $retval = false )

Ensure that bbp_is_single_forum() returns true on group forum pages.


Description Description

See also See also


Top ↑

Parameters Parameters

$retval

(Optional) Current boolean.

Default value: false


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/extend/buddypress/groups.php

	public function is_single_forum( $retval = false ) {

		// Additional BuddyPress specific single-forum conditionals
		if ( ( false === $retval ) && ! bp_is_action_variable( $this->topic_slug, 0 ) ) {
			$retval = true;
		}

		return $retval;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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