Home › Forums › Backend Issues (wp-admin) › Alter field group settings per content type › Reply To: Alter field group settings per content type
Continued testing has also revealed that you are correct about field groups loaded from JSON and the acf/load_field_group hook is not used.
Use this hook acf/validate_field_group
$field_group = apply_filters( 'acf/validate_field_group', $field_group );
You’ll need to test again if the global variable is set when this hook is called for groups loaded from json files.
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.