From 036f9eeb3c4260bb42b41b104ba4fc35e2649254 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sat, 15 Aug 2026 13:59:37 -0500 Subject: [PATCH] feat: model projects as their own editorial taxonomy Co-Authored-By: Claude Opus 5 (1M context) --- inc/taxonomies.php | 9 +++++++++ tests/php/TaxonomiesTest.php | 7 +++++++ 2 files changed, 16 insertions(+) diff --git a/inc/taxonomies.php b/inc/taxonomies.php index 1c4ec51..d3b1e88 100644 --- a/inc/taxonomies.php +++ b/inc/taxonomies.php @@ -54,6 +54,15 @@ function chrnx_get_editorial_taxonomies() { 'aqui-se-rompio-una-jerga' => __( 'Aquí se Rompió una Jerga', 'chrnx' ), ), ), + 'chrnx_project' => array( + 'singular' => __( 'Project', 'chrnx' ), + 'plural' => __( 'Projects', 'chrnx' ), + 'rest_base' => 'project', + 'terms' => array( + 'green-tea' => __( 'Green Tea', 'chrnx' ), + 'ailed' => __( 'Ailed', 'chrnx' ), + ), + ), ); } diff --git a/tests/php/TaxonomiesTest.php b/tests/php/TaxonomiesTest.php index 9161cad..2274fff 100644 --- a/tests/php/TaxonomiesTest.php +++ b/tests/php/TaxonomiesTest.php @@ -50,6 +50,13 @@ class TaxonomiesTest extends WP_UnitTestCase { 'silicon-ranch' => 'Silicon Ranch', ), ), + 'chrnx_project' => array( + 'rest_base' => 'project', + 'terms' => array( + 'green-tea' => 'Green Tea', + 'ailed' => 'Ailed', + ), + ), ); }