WP_Query::is_tax( ... )

Determines whether the query is for an existing custom taxonomy archive page.

Parameters:
  • $taxonomy string | string[]
  • $term int | string | int[] | string[]