AUTONAMI_TOKENS::get_status_name( mixed $contact )

Method get_status_name


Parameters Parameters

$contact

(Required)


Top ↑

Return Return

(void)


Source Source

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

	public function get_status_name( $contact ) {

		$status_id = absint( $contact->get_status() );

		switch ( $status_id ) {
			case 0:
				return __( 'Unverified', 'uncanny-automator' );
			case 1:
				return __( 'Subscribed', 'uncanny-automator' );
			case 2:
				return __( 'Bounced', 'uncanny-automator' );
			case 3:
				return __( 'Unsubscribed', 'uncanny-automator' );
			default:
				return __( 'Unknown', 'uncanny-automator' );
		}
	}