Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Remove permalink ‘view’ link from Profile Container request


Roger Coathup
Participant

@rogercoathup

We ended up implementing our own versions of bp_activity_latest_update(). Try adding something like the following to your bp-custom.php. Then remember to change the call in your member-header.php file to call your version of the function.

function ka_activity_latest_update( $user_id = false ) {
echo ka_get_activity_latest_update( $user_id );
}
function ka_get_activity_latest_update( $user_id = false ) {
global $bp;

if ( !$user_id )
$user_id = $bp->displayed_user->id;

if ( !$update = get_usermeta( $user_id, ‘bp_latest_update’ ) )
return false;

$latest_update = trim( strip_tags( bp_create_excerpt( $update, 40 ) ) );

return apply_filters( ‘bp_get_activity_latest_update’, $latest_update );
}

Skip to toolbar