feat: model projects as their own editorial taxonomy
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2 files changed
+16
No files matched your search
@@ -54,6 +54,15 @@ function chrnx_get_editorial_taxonomies() {
|
|||||||
'aqui-se-rompio-una-jerga' => __( 'Aquí se Rompió una Jerga', 'chrnx' ),
|
'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' ),
|
||||||
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -50,6 +50,13 @@ class TaxonomiesTest extends WP_UnitTestCase {
|
|||||||
'silicon-ranch' => 'Silicon Ranch',
|
'silicon-ranch' => 'Silicon Ranch',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
'chrnx_project' => array(
|
||||||
|
'rest_base' => 'project',
|
||||||
|
'terms' => array(
|
||||||
|
'green-tea' => 'Green Tea',
|
||||||
|
'ailed' => 'Ailed',
|
||||||
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user