Home › Forums › ACF PRO › Local JSON in plugin not load › Reply To: Local JSON in plugin not load
I wouldn’t recommend using WP_PLUGIN_DIR because if you use a custom setup with a different ABSPATH (like roots/bedrock), then it will fail already.
I would use something like plugin_basename( __FILE__ )
.
Don’t think this will fix your issue (depending on your setup), but it’s good practice to not use WP_PLUGIN_DIR imo.
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.