staff->get_display_name(); $timetics_staff_email = $this->staff->get_email(); $timetics_customer_name = $this->customer->get_display_name(); $timetics_customer_email = $this->customer->get_email(); $timetics_title = $this->get_title(); $timetics_description = $this->meeting->get_description(); $timetics_location = $this->booking->get_location(); $timetics_location_type = $this->booking->get_location_type(); $timetics_event = $this->booking->get_event(); $timetics_join_link = 'google-meet' === $timetics_location_type && ! empty( $timetics_event['hangoutLink'] ) ? $timetics_event['hangoutLink'] : ''; $timetics_timezone = $this->booking->get_timezone(); $timetics_staff_timezone = $this->meeting->get_timezone(); $timetics_dt = timetics_convert_timezone( $this->booking->get_start_date() . ' ' . $this->booking->get_start_time(), $timetics_timezone, $timetics_staff_timezone ); // Use WordPress date and time format settings $timetics_formatted = timetics_format_email_datetime( $this->booking->get_start_date(), $this->booking->get_start_time() ); $timetics_day = $timetics_formatted['day']; $timetics_time = $timetics_formatted['time']; $timetics_date = $timetics_formatted['date']; $timetics_email_body = timetics_get_option( 'booking_created_customer_email_body' ); $timetics_email_title = timetics_get_option( 'booking_created_customer_email_title' ); $timetics_email_title = ! empty( $timetics_email_title ) ? $timetics_email_title : $this->get_title(); $timetics_meeting_id = $this->meeting->get_id(); $timetics_booking_cancel_url = $this->meeting->get_appointment_permalink() . '?id=' . $this->booking->get_id() . '&meeting_id=' . $this->meeting->get_id() .'&booking_action=cancel'. '&appointment_token=' . $this->booking->get_security_token(); $timetics_booking_reschedule_url = $this->meeting->get_appointment_permalink() . '?id=' . $this->booking->get_id() . '&meeting_id=' . $this->meeting->get_id() . '&booking_action=reschedule'. '&appointment_token='. $this->booking->get_security_token(); $timetics_login_url = wp_login_url(); $timetics_login_username = $timetics_customer_email; $timetics_set_password_url = ''; $timetics_customer_user = get_user_by( 'id', $this->customer->get_id() ); if ( $timetics_customer_user ) { $timetics_reset_key = get_password_reset_key( $timetics_customer_user ); if ( ! is_wp_error( $timetics_reset_key ) ) { $timetics_set_password_url = network_site_url( 'wp-login.php?action=rp&key=' . $timetics_reset_key . '&login=' . rawurlencode( $timetics_customer_user->user_login ), 'login' ); } } $timetics_placeholders = [ '{%meeting_title%}' => $this->meeting->get_name(), '{%meeting_date%}' => $timetics_date, '{%meeting_time%}' => $timetics_time, '{%meeting_location%}' => $timetics_location, '{%meeting_duration%}' => $this->meeting->get_duration(), '{%host_name%}' => $timetics_staff_name, '{%host_email%}' => $this->staff->get_email(), '{%customer_name%}' => $timetics_customer_name, '{%customer_email%}' => $timetics_customer_email, '{%login_url%}' => $timetics_login_url, '{%login_username%}' => $timetics_login_username, '{%set_password_url%}' => $timetics_set_password_url, ]; ?>