scaffold_cpt_module
Scaffold a full Custom Post Type module with registration class, optional taxonomy, meta box, and admin columns for WordPress plugins.
Instructions
Generate a complete Custom Post Type module: CPT registration class, Taxonomy (optional), MetaBox (optional), Admin Columns (optional), and ServiceProvider.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootNamespace | Yes | Plugin root namespace (e.g., "MyPlugin") | |
| postTypeName | Yes | Post type name in PascalCase (e.g., "Portfolio", "Testimonial") | |
| slug | Yes | Post type slug (e.g., "portfolio", "testimonial") | |
| withTaxonomy | No | Include a taxonomy (default: false) | |
| taxonomyName | No | Taxonomy PascalCase name (e.g., "PortfolioCategory") | |
| taxonomySlug | No | Taxonomy slug (e.g., "portfolio-category") | |
| withMetaBox | No | Include a meta box (default: false) | |
| withColumns | No | Include admin columns (default: false) |