relevanssi_forbidden_taxonomies

apply_filters( 'relevanssi_forbidden_taxonomies', array $taxonomies )

Relevanssi removes many taxonomies from the list of taxonomies to index. These are generally back-end taxonomies that are not meant to be publicly accessed. This filter hook controls that list.

Parameters

$taxonomies
(array) An array of taxonomy names.

More information

WordPress Core has several taxonomies that don’t make sense to index for Relevanssi. These include wp_template_part_area, nav_menu, wp_pattern_category, and many others. Many popular plugins include these kinds of taxonomies, as well.

Relevanssi has a built-in list of forbidden taxonomies that are not listed as options for indexing. This filter hook filters that list. You can enable forbidden taxonomies, but that’s not useful. This filter hook is better used to remove more taxonomies from the list. To block taxonomies, do this:

add_filter(
  'relevanssi_forbidden_taxonomies',
  function( $taxonomies ) {
    return array_merge( $taxonomies, array( 'unwanted_taxonomy', 'useless_taxonomy' ) );
  }
);