AC_CONTACT_TAG_ADDED::trigger_conditions( $args )

Check tag ID against the trigger meta


Parameters Parameters

$args

(Required)


Source Source

File: src/integrations/active-campaign/triggers/ac-contact-tag-added.php

	public function trigger_conditions( $args ) {

		if ( ! is_array( $args ) ) {
			return;
		}

		$ac_event = array_shift( $args );

		if ( ! is_array( $ac_event ) || ! isset( $ac_event['tag'] ) ) {
			return;
		}

		$this->do_find_any( true ); // Support "Any tag" option

		// FInd the tag in trigger meta
		$this->do_find_this( $this->get_trigger_meta() );
		$this->do_find_in( $ac_event['tag'] );

	}