I just did a search of the ACF Pro code and that hook does not exist, and looking over the differences between 4 & 5 I’m not sure there is anything filter in 5 that does the same thing.
Instead you can use
$fields = acf_get_fields($field_group); in this case you you use the group key for
$field_group usually something like
group_55fb4bc36306a. There may be other functions as well that can do this. I’m also not sure if this will work with the ID value your using.
There also may be other functions that could do it but you may need to look into the ACF code.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2022 Advanced Custom Fields.