AUTONAMI_USER_ADDED_TO_LIST::setup_trigger()
Define and register the trigger by pushing it into the Automator object
Source Source
File: src/integrations/autonami/triggers/autonami-user-added-to-list.php
public function setup_trigger() { $this->set_integration( 'AUTONAMI' ); $this->set_trigger_code( 'USER_ADDED_TO_LIST' ); $this->set_trigger_meta( 'LIST' ); $this->set_is_login_required( false ); $this->set_support_link( $this->helpers->support_link( $this->trigger_code ) ); /* Translators: List name */ $this->set_sentence( sprintf( 'A user is added to {{a list:%1$s}}', $this->get_trigger_meta() ) ); $this->set_readable_sentence( 'A user is added to {{a list}}' ); $this->add_action( 'automator_bwfan_contact_added_to_list' ); $this->set_action_args_count( 2 ); $this->set_options_callback( array( $this, 'load_options' ) ); }
Expand full source code Collapse full source code View on Github