Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,881
- Creating & Extending
- 25,911
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,834
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,184
-
It’s stored in the wp_user_meta table, and there are some BuddyPress wrapper functions around the standard WordPress get_user_meta() functions.
You should be able to use:
$activity = bp_get_user_meta( $user_id, ‘last_activity’, true );
Let me know if that works.
Cheers, Roger