Created
July 4, 2016 11:42
-
-
Save igmoweb/febf7684cb3191bed21a87c60d795fa6 to your computer and use it in GitHub Desktop.
Update Event summary when an appointment is updatedRaw
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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