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_staff( array $reservation = array() )
Method get_event_staff.
Contents
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()
Return Return
(string) The provider name.
Source Source
File: src/integrations/ameliabooking/helpers/ameliabooking-helpers.php
public function get_event_staff( $reservation = array() ) { $providers = array(); if ( ! empty( $reservation['event']['providers'] ) ) { foreach ( $reservation['event']['providers'] as $provider ) { $providers[] = implode( ' ', array( $provider['firstName'], $provider['lastName'], ) ); } return implode( ', ', $providers ); } return ''; }
Expand full source code Collapse full source code View on Github