bp_loggedin_user_domain()

Generate the link for the logged-in user’s profile.

Description

Return

(string)

Source

File: bp-members/bp-members-template.php

1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
function bp_loggedin_user_domain() {
    $bp = buddypress();
 
    /**
     * Filters the generated link for the logged-in user's profile.
     *
     * @since BuddyPress 1.0.0
     *
     * @param string $value Generated link for the logged-in user's profile.
     */
    return apply_filters( 'bp_loggedin_user_domain', isset( $bp->loggedin_user->domain ) ? $bp->loggedin_user->domain : '' );
}

Changelog

Changelog
Version Description
BuddyPress 1.0.0 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.