I want to get the ID of the currently logged in user. I've found the function:
get_current_user_id which seems to be working, however I'm not sure what 'current' means in this context.
Meaning if the user views the profile of another user, then will the current user change to become the other user?
In short I'm looking for a reliable way to always get only the id of the logged in user.