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.
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.