bbp_get_view_title( string $view = '' )
Get the view name aka title
Description
If a view id is supplied, that is used. Otherwise the bbp_view query var is checked for.
Parameters
- $view
-
(Optional) View id
Default value: ''
Return
(bool|string) Title on success, false on failure
Source
File: bp-forums/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']; }
Changelog
Version | Description |
---|---|
bbPress (r2789) | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.