Ameliabooking_Helpers::get_event_tags( array $reservation = array() )

Method get_event_tags.


Parameters Parameters

$reservation

(Optional) The reservation array from Amelia Hook.

Default value: array()


Top ↑

Return Return

(string) The tag [name] from tags array.


Source Source

File: src/integrations/ameliabooking/helpers/ameliabooking-helpers.php

	public function get_event_tags( $reservation = array() ) {

		$tag_string = '';

		if ( isset( $reservation['event']['tags'] ) ) {

			$tags = array_shift( $reservation['event']['tags'] );

			$tag_string = isset( $tags['name'] ) ? $tags['name'] : '';

		}

		return $tag_string;

	}