AUTONAMI_CONTACT_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-contact-added-to-list.php

	public function setup_trigger() {

		$this->set_integration( 'AUTONAMI' );
		$this->set_trigger_code( 'CONTACT_ADDED_TO_LIST' );
		$this->set_trigger_meta( 'LIST' );
		$this->set_trigger_type( 'anonymous' );
		$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 contact is added to {{a list:%1$s}}', $this->get_trigger_meta() ) );

		$this->set_readable_sentence( 'A contact 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' ) );

	}