Last active
July 6, 2016 12:30
-
-
Save igmoweb/020a3974cd56b54d1481a0d70163cb09 to your computer and use it in GitHub Desktop.
Overwrites GCal events title and description
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', '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