Ameliabooking_Helpers::get_event_organizer( int $organizer_id )
Method get_event_organizer.
Contents
Parameters Parameters
- $organizer_id
-
(Required) The organizer|staff|employee id.
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 ) ); } }
Expand full source code Collapse full source code View on Github