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_organizer( int $organizer_id )

Method get_event_organizer.


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

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