| Server IP : 172.67.71.254 / Your IP : 216.73.217.51 Web Server : nginx/1.27.1 System : Linux in-5 5.15.0-191-generic #201-Ubuntu SMP Fri Aug 7 18:39:04 UTC 2026 x86_64 User : arabianexpress ( 1872) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /storage/v9321/leapdubai/public_html/wp-content/plugins/kirki/app/Contracts/ |
Upload File : |
<?php
namespace Kirki\App\Contracts;
use Exception;
defined('ABSPATH') || exit;
use Kirki\App\DTO\Form\FormConfigDTO;
/**
* A single form-submission action channel (email, webhook, mail client, ...).
*
* Each handler runs one configured action of its type. The dispatcher routes
* actions by type, so handlers stay fully independent — a new or changed
* handler can never break another.
*/
interface FormActionHandler
{
/**
* Run a single configured action for the given submission.
*
* @param array $action A single configured action of this handler's type.
* @param array $form_data The submission data.
* @param FormConfigDTO $form_config The form configuration.
* @return bool Whether it succeeded. Fire-and-forget channels return true.
* @throws Exception on error
*/
public function handle(array $action, array $form_data, FormConfigDTO $form_config);
}