bp_get_activity_user_id()
Return the activity user ID.
Description
Return
(int) The activity user ID.
Source
File: bp-activity/bp-activity-template.php
function bp_get_activity_user_id() {
global $activities_template;
/**
* Filters the activity user ID.
*
* @since BuddyPress 1.1.0
*
* @param int $user_id The activity user ID.
*/
return apply_filters( 'bp_get_activity_user_id', $activities_template->activity->user_id );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.1.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.