bp_get_member_user_id()
Get the ID of the current member in the loop.
Description Description
Return Return
(string) Member ID.
Source 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 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 Changelog
Version | Description |
---|---|
1.2.0 | Introduced. |