apply_filters( 'relevanssi_blocked_field_types', array $field_types );

Filters the Advanced Custom Fields field types Relevanssi automatically excludes from indexing.


(array) An array of field type names. Default: ‘repeater’, ‘flexible_content’, ‘group’.

More information

Relevanssi has various methods of controlling which ACF fields are indexed. One of them is this filter hook, which uses field types. By default, this filter excludes the field types repeater, flexible_content and group, which are meta fields that don’t ever contain the actual user-inputted content.

To add more field types to this list, you can add this function to your site:

add_filter( 'relevanssi_blocked_field_types', function( $field_types ) {
  return array_merge( $field_types, array( 'field_type', 'another_field_type' ) );
} );