# chatbot/8.8.0/addons/automator/includes/triggers/workflow-triggers.php

WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services, version 8.8.0. 46 lines.

- Page: https://pluginprobe.com/plugins/chatbot/8.8.0/code/addons/automator/includes/triggers/workflow-triggers.php
- Raw: https://pluginprobe.com/plugins/chatbot/8.8.0/raw/addons/automator/includes/triggers/workflow-triggers.php
- Modified: 2026-09-24T08:28:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/chatbot/8.8.0/code/addons/automator/includes/triggers/workflow-triggers.php#L10-L20`.

```php
<?php
/**
 * Workflow Triggers
 *
 * @package WPbot_Automator
 */

namespace WPbot_Automator\Triggers;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Class Workflow_Triggers
 */
class Workflow_Triggers extends Trigger {

	/**
	 * Constructor
	 */
	public function __construct() {
		$this->id    = 'workflow';
		$this->group = __( 'Workflows', 'wpbot-automator' );
	}

	/**
	 * Get available sub-triggers
	 */
	public static function get_sub_triggers() {
		return array(
			'sub_workflow_trigger' => array(
				'title' => __( 'Sub-Workflow Trigger', 'wpbot-automator' ),
				'description' => __( 'Triggered when called from another workflow.', 'wpbot-automator' ),
			),
		);
	}

	/**
	 * Register the triggers
	 */
	public function register() {
		// No direct registration needed as it's called manually by Call_Sub_Workflow action.
	}
}

```
