$template_args */ $template_args = (isset($args) && is_array($args)) ? $args : []; $booking = bizdex_uplisting_resolve_template_booking($template_args); $property = bizdex_uplisting_resolve_template_property($template_args); if (!$booking || !$property) { return; } $confirmation_message = (string) ($template_args['confirmation_message'] ?? __('Your reservation has been confirmed!', 'advanced-connector-for-uplisting')); $booking_reference = (int) ($template_args['booking_reference'] ?? $booking->get_id()); $guest_name = (string) ($template_args['guest_name'] ?? ''); $guest_email = (string) ($template_args['guest_email'] ?? ''); $guest_phone = (string) ($template_args['guest_phone'] ?? ''); $payment_status = (string) ($template_args['payment_status'] ?? ''); ?>