I have an existing mod plugin that I'm looking to retrieve a custom user field value within.
I have access to $USER, $CFG, and $DB objects, but am not sure exactly how to retrieve a custom user field (yes it's already created).
This thread mentions it, but does not resolve it. https://moodle.org/mod/forum/discuss.php?d=266474
Thank you!