scaffold_ajax_handler
Create a WordPress AJAX handler with nonce verification and capability checks, generating PHP handler class, JS caller, and ServiceProvider registration.
Instructions
Generate a WordPress AJAX handler with nonce verification, capability check, PHP handler class, JS caller, and ServiceProvider registration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootNamespace | Yes | Plugin root namespace | |
| actionName | Yes | AJAX action name (e.g., "save_settings") | |
| textDomain | Yes | Plugin text domain | |
| requireLogin | No | Require logged-in user (default: true) | |
| capability | No | Required capability (default: manage_options) |