Home › Forums › ACF PRO › Field loading already disabled › Reply To: Field loading already disabled
Thanks, John! I ended up using get_field_object() to see how the field was coming out of the data store, wondering if that might be before any filters were applied, and the disabled flag was set to 1 in the return from that function.
Then I remembered that I’d created an acf-json folder in my theme just a few days prior to take advantage of the caching speed. Sure enough, the json that had been written to disk had the disabled flag on. I deleted the folder, and the field went back to functioning normally.
So it appears that anything that happens in load_field affects what’s cached in the acf-json folder. I reported this in a support ticket.
I appreciate the insight into prepare_field vs. load_field. I switched to prepare_field for this conditional disabling.
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.