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.
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 |