FLSUPPORT_TICKETCREATEDCUSTOMER::define_trigger()
Define and register the trigger by pushing it into the Automator object
Source Source
File: src/integrations/fluent-support/triggers/flsupport-ticketcreatedcustomer.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 is opened by a customer', 'uncanny-automator' ), /* translators: Logged-in trigger - Fluent Support */ 'select_option_name' => esc_attr__( 'A ticket is opened by a customer', 'uncanny-automator' ), 'action' => 'fluent_support/ticket_created', 'priority' => 20, 'accepted_args' => 2, 'validation_function' => array( $this, 'fsupport_ticket_opened' ), 'options' => array(), ); Automator()->register->trigger( $trigger ); }
Expand full source code Collapse full source code View on Github