bp_member_is_loggedin_user()

Check whether the current member in the loop is the logged-in user.


Return Return

(bool)


Source 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 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 );
}


Top ↑

Changelog Changelog

Changelog
Version Description
1.2.5 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.