FLSUPPORT_TICKETREPLIEDCUSTOMER::define_trigger()

Define and register the trigger by pushing it into the Automator object


Source Source

File: src/integrations/fluent-support/triggers/flsupport-ticketrepliedcustomer.php

	public function define_trigger() {

		$trigger = array(
			'author'              => Automator()->get_author_name( $this->trigger_code ),
			'support_link'        => Automator()->get_author_support_link( $this->trigger_code, 'integration/fluent-support/' ),
			'integration'         => self::$integration,
			'code'                => $this->trigger_code,
			/* translators: Logged-in trigger - Fluent Support */
			'sentence'            => esc_attr__( 'A ticket receives a reply from a customer', 'uncanny-automator' ),
			/* translators: Logged-in trigger - Fluent Support */
			'select_option_name'  => esc_attr__( 'A ticket receives a reply from a customer', 'uncanny-automator' ),
			'action'              => 'fluent_support/response_added_by_customer',
			'priority'            => 20,
			'accepted_args'       => 3,
			'validation_function' => array( $this, 'fsupport_ticket_customer_replied' ),
			'options'             => array(),
		);

		Automator()->register->trigger( $trigger );
	}