jankx / data-factory
Create post types, taxonomies from theme.json settings
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/jankx/data-factory
Requires
- jankx/core: *
This package is auto-updated.
Last update: 2025-10-20 07:04:58 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"]
}
]
}
}