Ameliabooking_Helpers::get_event_organizer( int $organizer_id )

Method get_event_organizer.


Parameters Parameters

$organizer_id

(Required) The organizer|staff|employee id.


Top ↑

Return Return

(string) The organizer.


Source Source

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

	public function get_event_organizer( $organizer_id = 0 ) {

		$organizer = $this->get_organizer( $organizer_id );

		if ( ! empty( $organizer ) ) {

			return implode(
				' ',
				array(
					$organizer->firstName, // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
					$organizer->lastName, // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
				)
			);

		}

	}