Algolia taxonomy shared attributes

I have assigned custom fields for taxonomy. How to tell algolia to read custom fields for taxonomy?
For custom posts I have written the following code:
function my_post_attributes( array $attributes, WP_Post $post ) {

$posttypes = get_post_types();

foreach ($posttypes as $posttype) {
	if ( $posttype !== $post->post_type ) {
		continue;
	}

	$groups = acf_get_field_groups(array('post_type' => $posttype));
	foreach ($groups as $group) {
		$fields = acf_get_fields($group['key']);

		foreach ($fields as $field) {
			if ($field['name'] == 'language') {
				$attributes[$field['name']] = get_field( $field['name'], $post->ID );
			}
		}
	}
}
return $attributes;

}
add_filter( ‘algolia_post_shared_attributes’, ‘my_post_attributes’, 10, 2 );
add_filter( ‘algolia_searchable_post_shared_attributes’, ‘my_post_attributes’, 10, 2 );

Can anyone tell me which filter to use for reading custom taxonomies from WP to Algolia?

Hi @zewo,

We suggest you use our Algolia WordPress Integration Guide instead of the plugin as we no longer support the WordPress plugin.

If you are using the WP Search with Algolia plugin, you will need to contact their support here.