Change booking title for Zoom Event Booking on Zoom portal.
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 this to your functions.php in your active theme. | |
add_filter( 'vczapi_woo_addon_meeting_title', 'vczapi_woo_addon_meeting_title_20220628', 10, 4 ); | |
function vczapi_woo_addon_meeting_title_20220628( $text, $booking_id, $product_id, $host_id ) { | |
$booking = get_wc_booking( $booking_id ); | |
$customer_name = $booking->get_customer()->name; | |
if ( ! empty( $customer_name ) ) { | |
return "Booking Session by " . $customer_name . " for " . get_the_title( $product_id ) . '-' . $booking_id; | |
} else { | |
return "Booking Session for " . get_the_title( $product_id ) . '-' . $booking_id; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment