scaffold_cron_job
Generate a WordPress cron job with custom schedule, handler class, and activation hooks for automated tasks.
Instructions
Generate a WordPress Cron job: scheduled event, custom interval, handler class, activation/deactivation hooks for schedule management.
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>",
"jobName": "<jobName>",
"interval": "<interval>",
"textDomain": "<textDomain>"
},
"name": "scaffold_cron_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootNamespace | Yes | Plugin root namespace | |
| jobName | Yes | Job name in snake_case (e.g., "cleanup_expired") | |
| interval | Yes | Schedule interval | |
| customSeconds | No | Custom interval seconds (if interval=custom) | |
| textDomain | Yes | Plugin text domain |