Skip to content

Instantly share code, notes, and snippets.

@digamber89
Last active January 8, 2021 06:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digamber89/6497b9b743b4284755d36bdd766f63f9 to your computer and use it in GitHub Desktop.
Save digamber89/6497b9b743b4284755d36bdd766f63f9 to your computer and use it in GitHub Desktop.
Change Zoom Meeting Title - when Booked - Zoom for WooCommerce Bookings
<?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