bp_member_is_loggedin_user()
Check whether the current member in the loop is the logged-in user.
Description
Return
(bool)
Source
File: bp-members/bp-members-template.php
function bp_member_is_loggedin_user() {
global $members_template;
/**
* Filters whether the current member in the loop is the logged-in user.
*
* @since BuddyPress 1.2.5
*
* @param bool $value Whether current member in the loop is logged in.
*/
return apply_filters( 'bp_member_is_loggedin_user', bp_loggedin_user_id() == $members_template->member->id ? true : false );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.2.5 | 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.