Support

Account

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.