We need a couple of profile fields added when installing a plugin. Is there any API for that? Or is manual insertion into `mdl_user_info_field` the only way to accomplish that?
I found an old issue on the tracker, but that seems to have been dropped at the time: https://tracker.moodle.org/browse/MDL-26347 Has something changed over the last decade?