Home › Forums › ACF PRO › Error 400 when change value "Show this field group if" › Reply To: Error 400 when change value "Show this field group if"
The problem was caused by this
File structure
| +- PluginName
| +- admin
| +- admin.php
| +- lib
| +- advanced-custom-fields-pro/acf.php
| +- acf.php
| +- PluginName.php
so on the PluginName.php I required admin.php and admin.php was requesting acf.php if the class acf doesn’t exist… nothing very fancy and acf was working but all the admin ajax actions made by acf where throwing error 400.
So the solution was very easy; Just request (include) acf.php on the file PluginName.php instead of including acf on admin.php
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.