AUTONAMI_USER_TAG_ADDED::validate_trigger( $args )

Validation function when the trigger action is hit


Parameters Parameters

$data

(Required)


Source Source

File: src/integrations/autonami/triggers/autonami-user-tag-added.php

	public function validate_trigger( ...$args ) {

		try {

			$contact = $this->helpers->extract_contact_from_args( $args );
			$user_id = $this->helpers->get_wp_id( $contact );
			$this->set_user_id( $user_id );

		} catch ( \Exception $e ) {
			return false;
		}

		return true;
	}