Home › Forums › General Issues › get_field() restores the site to current site when used › Reply To: get_field() restores the site to current site when used
There is nothing in ACF that should be causing this, ACF never calls restore_current_blog(), at least not when getting a field value. The only time ACF does this is when doing an upgrade on multisite.
I would start buy searching the code of all plugins and the theme to find places where restore_current_blog() is called. I would be looking for filters and actions that might be fired during the retrieval of the field value.
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.