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: ''
Return Return
(bool|string) Title on success, false on failure
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']; }
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |