diff --git a/src/Taxonomy.php b/src/Taxonomy.php index c271983..3e8b958 100644 --- a/src/Taxonomy.php +++ b/src/Taxonomy.php @@ -163,6 +163,7 @@ public function __construct( string $taxonomy, array $object_type, array $args = 'back_to_items' => sprintf( '← Back to %s', $this->tax_plural ), 'item_link' => sprintf( '%s Link', $this->tax_singular ), 'item_link_description' => sprintf( 'A link to a %s.', $this->tax_singular_low ), + 'template_name' => sprintf( '%s Archives', $this->tax_singular ), 'no_item' => sprintf( 'No %s', $this->tax_singular_low ), # Custom label 'filter_by' => sprintf( 'Filter by %s', $this->tax_singular_low ), # Custom label ]; diff --git a/tests/integration/SetupTest.php b/tests/integration/SetupTest.php index f3a16b8..81ec3f9 100644 --- a/tests/integration/SetupTest.php +++ b/tests/integration/SetupTest.php @@ -254,6 +254,7 @@ public function testTaxonomyLabelsAreCorrect(): void { 'archives' => 'Foo Categorys Archives', 'item_link' => 'Foo Category Link', 'item_link_description' => 'A link to a foo category.', + 'template_name' => 'Foo Category Archives', ); if ( version_compare( $wp_version, '5.9.0', '>=' ) ) {