MAILCHIMP_TOKENS::__construct()

__construct

Contents


Return Return

(void)


Source Source

File: src/integrations/mailchimp/tokens/mailchimp-tokens.php

	public function __construct() {

		add_action( 'automator_before_trigger_completed', array( $this, 'save_token_data' ), 20, 2 );

		add_filter( 'automator_maybe_trigger_mailchimp_tokens', array( $this, 'register_tokens' ), 20, 2 );

		add_filter( 'automator_maybe_trigger_mailchimp_anon_mailchimp_contact_unsubscribed_meta_tokens', array( $this, 'audience_field_possible_tokens' ), 20, 2 );

		add_filter( 'automator_maybe_trigger_mailchimp_anon_mailchimp_contact_added_meta_tokens', array( $this, 'audience_field_possible_tokens' ), 20, 2 );

		add_filter( 'automator_maybe_parse_token', array( $this, 'parse_tokens' ), 20, 6 );

	}