age_gate_field_names

Allows setting of custom field names in error messages.

This take one parameter in array format and should return an array.

Note: Default field names cannot be changed.

add_filter('age_gate_field_names', 'my_field_names', 10, 1);

function my_field_names($names){
  return array_merge($names, [
    'custom_field_name' => "custom label"
  ]);
}