Ah I see, thanks. And the article about this hook also should have describe an alternative i think:
https://www.advancedcustomfields.com/resources/acfinit/
Especially in this case:
https://www.advancedcustomfields.com/resources/register-fields-via-php/
I would like to register fields on a hook. How should i go about this?