Skip to content

Instantly share code, notes, and snippets.

@igmoweb
Last active July 6, 2016 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igmoweb/020a3974cd56b54d1481a0d70163cb09 to your computer and use it in GitHub Desktop.
Save igmoweb/020a3974cd56b54d1481a0d70163cb09 to your computer and use it in GitHub Desktop.
Overwrites GCal events title and description
<?php
add_filter( 'appointments_gcal_update_event', 'appointments_hooks_gcal_update_event', 10, 2 );
function appointments_hooks_gcal_update_event( $event, $appointment ) {
$appointments = appointments();
$gcal_api = $appointments->get_gcal_api();
$event = $gcal_api->appointment_to_gcal_event( $appointment->ID );
return $event;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment