I am trying to add a custom location to my ACF group that is dynamic.
I’ve tried through the following filters acf/load_field_group and validate_field_group but can’t get them to work correctly.
I have the ACFs exported in a php.
I know that I can edit the file directly, but I want to know if there is any other alternative.
You can either use tha acf/validate_field_group filter or use PHP to dynamically generate the “location” settings for a field group. If you export a field group to PHP and examine the location array you can use this as an example of what needs to be done.