PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 8.8.2
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v8.8.2
8.8.4 8.8.3 8.8.2 8.8.1 8.8.0 8.7.9 8.7.8 8.7.7 8.7.6 8.7.5 8.7.4 8.7.3 8.7.2 8.7.1 8.7.0 8.6.9 8.6.8 8.6.7 8.6.6 8.6.5 8.6.4 8.6.2 8.6.1 8.6.0 8.5.9 All 540 releases
← All changes | addons/automator/includes/triggers/workflow-triggers.php +45 -45 8.7.9 → 8.8.2 View file →
@@ -1,45 +1,45 @@
1 -<?php
2 -/**
3 - * Workflow Triggers
4 - *
5 - * @package WPbot_Automator
6 - */
7 -
8 -namespace WPbot_Automator\Triggers;
9 -
10 -if ( ! defined( 'ABSPATH' ) ) {
11 - exit;
12 -}
13 -
14 -/**
15 - * Class Workflow_Triggers
16 - */
17 -class Workflow_Triggers extends Trigger {
18 -
19 - /**
20 - * Constructor
21 - */
22 - public function __construct() {
23 - $this->id = 'workflow';
24 - $this->group = __( 'Workflows', 'wpbot-automator' );
25 - }
26 -
27 - /**
28 - * Get available sub-triggers
29 - */
30 - public static function get_sub_triggers() {
31 - return array(
32 - 'sub_workflow_trigger' => array(
33 - 'title' => __( 'Sub-Workflow Trigger', 'wpbot-automator' ),
34 - 'description' => __( 'Triggered when called from another workflow.', 'wpbot-automator' ),
35 - ),
36 - );
37 - }
38 -
39 - /**
40 - * Register the triggers
41 - */
42 - public function register() {
43 - // No direct registration needed as it's called manually by Call_Sub_Workflow action.
44 - }
45 -}
1 +<?php
2 +/**
3 + * Workflow Triggers
4 + *
5 + * @package WPbot_Automator
6 + */
7 +
8 +namespace WPbot_Automator\Triggers;
9 +
10 +if ( ! defined( 'ABSPATH' ) ) {
11 + exit;
12 +}
13 +
14 +/**
15 + * Class Workflow_Triggers
16 + */
17 +class Workflow_Triggers extends Trigger {
18 +
19 + /**
20 + * Constructor
21 + */
22 + public function __construct() {
23 + $this->id = 'workflow';
24 + $this->group = __( 'Workflows', 'wpbot-automator' );
25 + }
26 +
27 + /**
28 + * Get available sub-triggers
29 + */
30 + public static function get_sub_triggers() {
31 + return array(
32 + 'sub_workflow_trigger' => array(
33 + 'title' => __( 'Sub-Workflow Trigger', 'wpbot-automator' ),
34 + 'description' => __( 'Triggered when called from another workflow.', 'wpbot-automator' ),
35 + ),
36 + );
37 + }
38 +
39 + /**
40 + * Register the triggers
41 + */
42 + public function register() {
43 + // No direct registration needed as it's called manually by Call_Sub_Workflow action.
44 + }
45 +}