Using PHP, I would like to get a custom member field of the currently logged in member.
I would like to do something like this.
$this->EE->session->userdata ['custom_member_field'];Where custom_member_field is the name of the custom member field.
I notice in the user guide doc that custom fields are not part of the session class.
How could I go about doing this?
Thanks
UPDATE:
I think the answer can be found here. This may also help using a 3rd party plug-in.