First, why are you using acf/get_valid_field
, you can probably use acf/load_field
and just do a check to make sure you’re not on the acf field group edit page. This would likely solve your problem with sub fields. https://www.advancedcustomfields.com/resources/acfload_field/
for the choices it would probably look something like
foreach ($field['choices'] as $value => $label)) {
$field['choices'][$value] = WPGlobus_Core::text_filter($label, WPGlobus::Config()->language );
}