feat: model projects as their own editorial taxonomy

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
chrnxandClaude Opus 5 committed 2026-08-15 13:59:37 -05:00
1 parent 5e1fcf0315
commit 036f9eeb3c
2 files changed
+16

No files matched your search

+9
View File
@@ -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' ),
),
),
);
}
+7
View File
@@ -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',
),
),
);
}