AUTONAMI_TOKENS::comma_separated_lists( 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_lists( $bwfcrm_contact ) {

		$output = array();

		$lists = $bwfcrm_contact->contact->get_lists();

		$list_objects = \BWFCRM_Lists::get_lists( $lists );

		foreach ( $list_objects as $list_obj ) {
			$output[] = $list_obj['name'];
		}

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