jankx / data-factory
Create post types, taxonomies from theme.json settings
dev-master
2024-07-08 01:27 UTC
Requires
- jankx/core: *
This package is auto-updated.
Last update: 2024-11-08 02:10:19 UTC
README
Create post types, taxonomies from theme.json settings
theme.json
Added config to theme.json to create post types or taxonomies
{
"custom": {
"post_types": [
{
"name": "Post type name",
"singular_name": "Post type singular name",
"type": "define post type here",
"slug": "post type slug",
"options": {
}
}
],
"taxonomies": [
{
"name": "Taxonomy name",
"singular_name": "Taxonomy singular name",
"type": "define taxonomu here",
"slug": "taxonomy slug",
"options": {
},
"post_types": ["post-type-slug"]
}
]
}
}