Server IP : 172.67.158.161 / Your IP : 3.145.20.21 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/thread-self/root/proc/self/root/proc/self/root/proc/thread-self/root/home/giankuin/thietke365.net/wp-content/plugins/mailpoet/lib/Automation/Engine/ |
Upload File : |
<?php declare(strict_types = 1); namespace MailPoet\Automation\Engine; if (!defined('ABSPATH')) exit; use MailPoet\Automation\Engine\Data\Automation; use MailPoet\Automation\Engine\Data\AutomationRunLog; use MailPoet\Automation\Engine\Data\Step; class Hooks { /** @var WordPress */ private $wordPress; public function __construct( WordPress $wordPress ) { $this->wordPress = $wordPress; } public const INITIALIZE = 'mailpoet/automation/initialize'; public const API_INITIALIZE = 'mailpoet/automation/api/initialize'; public const STEP_RUNNER_INITIALIZE = 'mailpoet/automation/step_runner/initialize'; public const TRIGGER = 'mailpoet/automation/trigger'; public const AUTOMATION_STEP = 'mailpoet/automation/step'; public const EDITOR_BEFORE_LOAD = 'mailpoet/automation/editor/before_load'; public const AUTOMATION_BEFORE_SAVE = 'mailpoet/automation/before_save'; public const AUTOMATION_STEP_BEFORE_SAVE = 'mailpoet/automation/step/before_save'; public const AUTOMATION_RUN_LOG_AFTER_STEP_RUN = 'mailpoet/automation/step/after_run'; public const AUTOMATION_RUN_CREATE = 'mailpoet/automation/run/create'; public function doAutomationBeforeSave(Automation $automation): void { $this->wordPress->doAction(self::AUTOMATION_BEFORE_SAVE, $automation); } public function doAutomationStepBeforeSave(Step $step, Automation $automation): void { $this->wordPress->doAction(self::AUTOMATION_STEP_BEFORE_SAVE, $step, $automation); } public function doAutomationStepByKeyBeforeSave(Step $step, Automation $automation): void { $this->wordPress->doAction(self::AUTOMATION_STEP_BEFORE_SAVE . '/key=' . $step->getKey(), $step, $automation); } public function doAutomationStepAfterRun(AutomationRunLog $automationRunLog): void { $this->wordPress->doAction(self::AUTOMATION_RUN_LOG_AFTER_STEP_RUN, $automationRunLog); } }