ANON_FCRM_CONTACT_STATUS_UPDATED::define_trigger()
Define and register the trigger by pushing it into the Automator object.
Return Return
(void)
Source Source
File: src/integrations/fluent-crm/triggers/anon-fcrm-contact-status-updated.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/fluentcrm/' ), 'integration' => self::$integration, 'code' => $this->trigger_code, 'type' => 'anonymous', 'is_pro' => false, /* translators: Logged-in trigger - Fluent Forms */ 'sentence' => sprintf( esc_html__( 'A contact is set to a {{specific status:%1$s}}', 'uncanny-automator' ), $this->trigger_code ), /* translators: Logged-in trigger - Fluent Forms */ 'select_option_name' => esc_html__( 'A contact is set to a {{specific status}}', 'uncanny-automator' ), 'action' => 'automator_fluentcrm_status_update', 'priority' => 200, 'accepted_args' => 2, 'validation_function' => array( $this, 'contact_status_updated' ), 'options' => array( array( 'input_type' => 'select', 'option_code' => $this->trigger_code, 'options' => Automator()->helpers->recipe->fluent_crm->get_subscriber_statuses(), 'required' => true, 'label' => esc_html__( 'List of all available status values for Fluent CRM contacts.', 'uncanny-automator' ), 'description' => esc_html__( 'Select from dropdown list of the options above.', 'uncanny-automator' ), 'supports_token' => true, 'supports_multiple_values' => false, 'supports_custom_value' => false, 'relevant_tokens' => $this->get_tokens(), ), ), ); Automator()->register->trigger( $trigger ); }
Expand full source code Collapse full source code View on Github