scaffold_meta_box
Generate a WordPress meta box with registration, render callback, save handler including nonce and capability checks, and field definitions.
Instructions
Generate a WordPress meta box: registration, render callback, save handler with nonce/capability checks, and field definitions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootNamespace | Yes | Plugin root namespace | |
| metaBoxId | Yes | Meta box ID (e.g., "product-details") | |
| title | Yes | Meta box title | |
| postTypes | Yes | Post types, comma-separated (e.g., "post,page") | |
| textDomain | Yes | Plugin text domain | |
| fields | Yes | Fields as "name:type:label" (e.g., "subtitle:text:Subtitle,featured:checkbox:Featured,notes:textarea:Notes") | |
| context | No | Position (default: normal) |