bp_get_member_user_id()
Get the ID of the current member in the loop.
Description
Return
(string) Member ID.
Source
File: bp-members/bp-members-template.php
function bp_get_member_user_id() { global $members_template; $member_id = isset( $members_template->member->id ) ? (int) $members_template->member->id : false; /** * Filters the ID of the current member in the loop. * * @since BuddyPress 1.2.0 * * @param int $member_id ID of the member being iterated over. */ return apply_filters( 'bp_get_member_user_id', $member_id ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.2.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.