BP_XProfile_Component::setup_title()
Sets up the title for pages and
Description Description
Source Source
File: bp-xprofile/classes/class-bp-xprofile-component.php
public function setup_title() {
if ( bp_is_profile_component() ) {
$bp = buddypress();
if ( bp_is_my_profile() ) {
$bp->bp_options_title = _x( 'My Profile', 'Page title', 'buddypress' );
} else {
$bp->bp_options_avatar = bp_core_fetch_avatar( array(
'item_id' => bp_displayed_user_id(),
'type' => 'thumb',
'alt' => sprintf( _x( 'Profile picture of %s', 'Avatar alt', 'buddypress' ), bp_get_displayed_user_fullname() )
) );
$bp->bp_options_title = bp_get_displayed_user_fullname();
}
}
parent::setup_title();
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |