I just found the solution to the problem. My hooks were registered in the functions.php
but I did it after having called get_field()
a little bit earlier. Calling get_field()
initialises ACF and thus the hooks were useless afterwards.
Seems so simple now, but was quite hard to grasp…