I'm using a custom tag class to retrieve some user information from a remote API.
I'd like to get some user fields data in the custom Class to call the API.
I've used this
$user = User::getCurrent(); print("<pre>".print_r($user, true)."</pre>");
But I can't see any public method to access the user fields.
Thanks in advance.