scaffold_admin_notice
Generate WordPress admin notices with dismissible, persistent, conditional screen/capability display, and proper escaping and styling.
Instructions
Generate a WordPress admin notice: dismissible, persistent (user meta), conditional (screen/capability), with proper escaping and styling.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"rootNamespace": "<rootNamespace>",
"noticeName": "<noticeName>",
"noticeType": "<noticeType>",
"message": "<message>",
"textDomain": "<textDomain>"
},
"name": "scaffold_admin_notice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootNamespace | Yes | Plugin root namespace | |
| noticeName | Yes | Notice name in PascalCase (e.g., "WelcomeNotice") | |
| noticeType | Yes | Notice type | |
| message | Yes | Notice message text | |
| textDomain | Yes | Plugin text domain | |
| dismissible | No | User-dismissible (default: true) | |
| persistent | No | Remember dismissal via user meta (default: true) | |
| screens | No | Limit to screens, comma-separated (e.g., "dashboard,plugins") |