I am trying to modify the below code to add 'sendUpdated' => 'all' so all the attendees receive the email when the event is created or updated.
<?php
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
/**
* Google Calendar Synchronization.
*/
class WC_Appointments_GCal {
const TOKEN_TRANSIENT_TIME = 3500;
const DAYS_OF_WEEK = array(
1 => 'monday',
2 => 'tuesday',
3 => 'wednesday',
4 => 'thursday',
5 => 'friday',
6 => 'saturday',
7 => 'sunday',
);
.......full code can be found below...
Full code: https://pastebin.com/PLEwYTZV
(Above code does not belong to me and the reason it is external, because I am not able to paste everything here due to the limit.)
API Documentation: https://developers.google.com/calendar/v3/reference/events/
Had to add this to complete the url
$api_url = $api_url_ok.'/?sendUpdates=all';