Add_Autonami_Integration::setup()

Integration Set-up.


Source Source

File: src/integrations/autonami/add-autonami-integration.php

	protected function setup() {
		$this->set_integration( 'AUTONAMI' );
		$this->set_name( 'Autonami' );
		$this->set_icon( __DIR__ . '/img/autonami-icon.svg' );

		// By default, bwfan_contact_added_to_lists action passes a single list or an array of lists.
		// We need to create a custom hook that fires for each list separately to make sure our tokens work.
		add_action( 'bwfan_contact_added_to_lists', array( $this, 'contact_added_to_lists' ), 10, 2 );

		// By default, bwfan_tags_added_to_contact action passes a single tag or an array of tags.
		// We need to create a custom hook that fires for each tag separately to make sure our tokens work.
		add_action( 'bwfan_tags_added_to_contact', array( $this, 'tag_added_to_contact' ), 10, 2 );
	}