FCRM_USER_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/fcrm-user-status-updated.php
'support_link' => Automator()->get_author_support_link( $this->trigger_code, 'integration/fluentcrm/' ), 'integration' => self::$integration, 'code' => $this->trigger_code, /* translators: Logged-in trigger - Fluent Forms */ 'sentence' => sprintf( esc_html__( 'A user 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 user is set to a {{specific status}}', 'uncanny-automator' ), 'action' => 'automator_fluentcrm_status_update', 'priority' => 200, 'accepted_args' => 2, 'validation_function' => array( $this, 'user_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 ); } /* * Callback function to define trigger. */ public function user_status_updated( $subscriber, $old_value ) {
Expand full source code Collapse full source code View on Github