Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

  • djanym
    Participant

    @djanym


    djanym
    Participant

    @djanym

    I’ve made such way:
    Added a function in functions.php and call it in beginning of the page.

    function set_displayed_user( $user_id ) {
    global $bp;
    
    $bp->displayed_user->id = $user_id;
    $bp->displayed_user->domain = bp_core_get_user_domain( $bp->displayed_user->id );
    $bp->displayed_user->userdata = bp_core_get_core_userdata( $bp->displayed_user->id );
    $bp->displayed_user->fullname = bp_core_get_user_displayname( $bp->displayed_user->id );
    }
Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar