AUTONAMI_TOKENS::comma_separated_tags( mixed $bwfcrm_contact )

Method comma_separated_lists


Parameters Parameters

$bwfcrm_contact

(Required)


Top ↑

Return Return

(string)


Source Source

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

	public function comma_separated_tags( $bwfcrm_contact ) {

		$output = array();

		$tags = $bwfcrm_contact->contact->get_tags();

		$tag_objects = \BWFCRM_Tag::get_tags( $tags );

		foreach ( $tag_objects as $tag_obj ) {
			$output[] = $tag_obj['name'];
		}

		return implode( ', ', $output );
	}