um_profile_id()

Description

This function can be used in the user profile created by UM and returns the user ID of the current profile.

Returns

Number. The requested member ID on the profile page, current user ID on other pages and 0 if the user is not logged in.

Example

$profile_id = um_profile_id();