Created
June 13, 2023 16:26
-
-
Save benheu/53500f13c9b8af00d9223c004415e270 to your computer and use it in GitHub Desktop.
Listening to a appointment confirmed event
This file contains 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_action('wappointment_appointment_confirmed', 'my_function'); | |
function my_function($eventObject){ | |
$client = $eventObject->getClient(); | |
$email = $client->email; | |
$name = $client->name; | |
/* | |
your code | |
*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment