public function taxonomy( $template ) {

		$templates = [];

		// Get the queried term object.
		$term = get_queried_object();
		$slug = urldecode( $term->slug );

		// Remove 'post-format' from the slug.
		if ( 'post_format' === $term->taxonomy ) {
			$slug = str_replace( 'post-format-', '', $slug );
		}

		// Slug-based template.
		$templates[] = "taxonomy-{$term->taxonomy}-{$slug}.php";

		// Taxonomy-specific template.
		$templates[] = "taxonomy-{$term->taxonomy}.php";

		// Default template.
		$templates[] = 'taxonomy.php';

		// Return the template hierarchy.
		return $templates;
	}