Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825

Warning: foreach() argument must be of type array|object, string given in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 830

Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
Ameliabooking_Helpers::get_event_tags( array $reservation = array() )

Method get_event_tags.


Warning: foreach() argument must be of type array|object, string given in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 830

Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825

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;
	}