Created
December 18, 2020 08:49
-
-
Save digamber89/01363eda73efe94091994fa5fa5ecfc0 to your computer and use it in GitHub Desktop.
Zoom for WooCommerce Appointments change Meeting title
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('vczapi_woocommerce_appointments_create_meeting_params', 'cm_change_meeting_topic_title_for_appointments',10,4); | |
function cm_change_meeting_topic_title_for_appointments ($meeting_params, WC_Appointment $wc_appointment, $proudct_id, $order_id){ | |
$order = wc_get_order($order_id); | |
$full_name = $order->get_billing_first_name() .' '.$order->get_billing_last_name(); | |
$meeting_params['meetingTopic'] = "Appointment for ".$full_name.' - '.$wc_appointment->get_id(); | |
return $meeting_params; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment