Skip to content

Instantly share code, notes, and snippets.

@igmoweb
Created July 4, 2016 11:42
Show Gist options
  • Save igmoweb/febf7684cb3191bed21a87c60d795fa6 to your computer and use it in GitHub Desktop.
Save igmoweb/febf7684cb3191bed21a87c60d795fa6 to your computer and use it in GitHub Desktop.
Update Event summary when an appointment is updatedRaw
<?php
add_filter( 'appointments_gcal_update_event', 'app_gcal_update_event_summary', 10, 2 );
function app_gcal_update_event_summary ( $event, $app ) {
if ( $event ) {
$appointments = appointments();
$event->setSummary( $appointments->get_service_name( $app->service ) . ' Appointment' );
}
return $event;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment