Home Forums General Issues Bundling ACF in plugin Reply To: Bundling ACF in plugin

  • More than likely ACF has called those hooks before ‘plugins_loaded’, but that’s just a guess.

    Try not adding the filters inside of another filter. You can add filters when the file that function is in is loaded.

    Also, functions added inside of function become top level function in ACF, however… A function inside of a filter, well, the filter is called inside a class in WP and if I’m not mistaken, those functions become part of the class. It could be that just moving the functions outside of your action filter will correct the problem.