BP_Forums_Component::setup_title()
Sets up the title for pages and
Description
Source
File: bp-forums/classes/class-bp-forums-component.php
public function setup_title() { $bp = buddypress(); // Adjust title based on view if ( bp_is_forums_component() ) { if ( bp_is_my_profile() ) { $bp->bp_options_title = __( 'Forums', 'buddyboss' ); } elseif ( bp_is_user() ) { $bp->bp_options_avatar = bp_core_fetch_avatar( array( 'item_id' => bp_displayed_user_id(), 'type' => 'thumb' ) ); $bp->bp_options_title = bp_get_displayed_user_fullname(); } } parent::setup_title(); }
Changelog
Version | Description |
---|---|
bbPress (r3552) | 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.