bbp_get_view_title( string $view = '' )

Get the view name aka title


Description Description

If a view id is supplied, that is used. Otherwise the bbp_view query var is checked for.


Parameters Parameters

$view

(Optional) View id

Default value: ''


Top ↑

Return Return

(bool|string) Title on success, false on failure


Top ↑

Source Source

File: includes/common/template.php

	function bbp_get_view_title( $view = '' ) {
		$bbp = bbpress();

		$view = bbp_get_view_id( $view );
		if ( empty( $view ) ) {
			return false;
		}

		return $bbp->views[ $view ]['title'];
	}

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.