form-actions.php
4 days ago
form-uploads.php
4 days ago
hooks.php
1 month ago
listeners.cache.php
1 month ago
media.php
1 month ago
messages.php
4 days ago
migrations.php
1 month ago
policies.cache.php
1 month ago
form-actions.php
22 lines
| 1 | <?php |
| 2 | |
| 3 | defined('ABSPATH') || exit; |
| 4 | |
| 5 | use Kirki\App\FormActions\Actions\EmailActionHandler; |
| 6 | use Kirki\App\FormActions\Actions\WebhookActionHandler; |
| 7 | use Kirki\App\Constants\Form\FormActionTypes; |
| 8 | |
| 9 | /** |
| 10 | * Form submission action handlers, keyed by action type. |
| 11 | * |
| 12 | * Each handler owns one delivery channel. To add a new action type, create a |
| 13 | * handler implementing FormActionHandler and map it here under a key that |
| 14 | * matches the action `type` value authored on the frontend. |
| 15 | */ |
| 16 | return [ |
| 17 | 'handlers' => [ |
| 18 | FormActionTypes::EMAIL => EmailActionHandler::class, |
| 19 | FormActionTypes::WEBHOOK => WebhookActionHandler::class, |
| 20 | ], |
| 21 | ]; |
| 22 |