So basically you avoided using get_field()
inside of your hook. π
I took another approach and removed the hook once it had been executed.
remove_filter( 'acf/load_field/name=mb_recipe', array( $this, 'load_recipe_options' ) );
Seems to have solved the trick for now. Still, which they could add a param to the hook arguments that would allow me to filter out what called the hook. π
I’m also having issues with an infinite loop while using get_field
inside of a load_field
filter. So annoying!
Hmmm, well, now that I’ve upgraded to 5.0.2 I can’t reproduce the issue. ha. I’ll reopen if it shows again. Thx!