If you are using a json file you can set the group to private, this is explained on this page. If you are creating the group in php add the private setting, $group['private'] = 1
. If the field group is created some other way you can do this.
add_filter('acf/get_field_group', 'hide_field_groups', 20);
function hide_field_groups($group) {
if ($group['key'] == 'group_5b586829bb34c') {
$group['private'] = 1;
}
return $group;
}
But be aware that if you’re using local JSON you will not be able to sync this group.