Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: custom members loop

@henrywright

Moderator

Hi @mykrabuilding

To my knowledge, the time of the latest update isn’t recorded. The latest update info is stored in user meta. To get it you’d do something like:

$update = get_usermeta( $user_id, 'bp_latest_update' );

You then have the option to get either the activity ID or the content (no timestamp I’m afraid).

echo $update['id'];
echo $update['content'];

You can of course add your own user meta when somebody writes a status update. You could record a timestamp and then fetch it as described above.

See:
https://codex.wordpress.org/Function_Reference/update_user_meta

I think bp_activity_posted_update is the hook you’ll need.

Skip to toolbar