BBP_Forums_Group_Extension::is_single_topic( bool $retval = false )

Ensure that bbp_is_single_topic() returns true on group forum topic 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_topic( $retval = false ) {

		// Additional BuddyPress specific single-topic conditionals
		if ( ( false === $retval ) && bp_is_action_variable( $this->topic_slug, 0 ) && bp_action_variable( 1 ) ) {
			$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.