Last active
January 8, 2021 06:55
-
-
Save digamber89/6497b9b743b4284755d36bdd766f63f9 to your computer and use it in GitHub Desktop.
Change Zoom Meeting Title - when Booked - Zoom for WooCommerce Bookings
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 | |
function cm_change_booking_title( $meeting_params, $wc_booking, $product_id, $order_id ) { | |
$order = wc_get_order( $order_id ); | |
if( is_object($order)){ | |
$name = $order->get_billing_first_name() .' '. $order->get_billing_last_name(); | |
$product = wc_get_product($product_id); | |
$meeting_params['meetingTopic'] = $product->get_name().' - '.$name.' - '.$order_id; | |
} | |
return $meeting_params; | |
} | |
add_filter( 'vczapi_woo_addon_create_meeting_params', 'cm_change_booking_title', 10, 4 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment