# timetics/1.0.62/templates/emails/new-event-customer.php

Timetics – Appointment Booking Calendar &amp; Scheduling, version 1.0.62. 193 lines.

- Page: https://pluginprobe.com/plugins/timetics/1.0.62/code/templates/emails/new-event-customer.php
- Raw: https://pluginprobe.com/plugins/timetics/1.0.62/raw/templates/emails/new-event-customer.php
- Modified: 2026-05-24T08:09:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/timetics/1.0.62/code/templates/emails/new-event-customer.php#L10-L20`.

```php
<?php
defined( 'ABSPATH' ) || exit;

    $timetics_staff_name     = $this->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,
    ];
?>

<div class="email-wrapper" style="margin-bottom: 30px; background-color: #f4f5f7; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI','Noto Sans',Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji', sans-serif;">
    <div style="max-width: 600px; margin: 0 auto;">
        <div class="email-content" style="padding: 40px; background-color: #ffffff; border-radius: 0 0 12px 12px; border-top: 4px solid #3161F1; margin-bottom: 40px;">
            <?php do_action('timetics_email_header') ;?>
            <div class="email-title">
                <h3 style="color: #3161F1; font-size: 24px; font-weight: 600; margin: 30px 0;">
                    <?php echo wp_kses( timetics_replace_placeholder( $timetics_email_title, $timetics_placeholders ), 'post' ); ?>
                </h3>
            </div>
            <?php if ( $timetics_email_body ): ?>

                <?php echo wp_kses( timetics_replace_placeholder( $timetics_email_body, $timetics_placeholders ), 'post' ); ?>
                <?php if ( 'google-meet' === $timetics_location_type && $timetics_join_link ): ?>

                    <div class="single-data-entry" style="margin: 10px 0 20px;">
                        <p style="font-weight: 600; font-size: 14px; line-height: 1; color: #0C274A; margin: 0 0 5px;">
                            <?php esc_html_e( 'Location:', 'timetics' );?>
                        </p>
                        <p style="font-weight: 400; font-size: 14px; color: #556880; margin: 0;">
                            <?php echo esc_html__('Joining link:', 'timetics') ;?>
                            <a style="color: #3161F1" href="<?php echo esc_url( $timetics_join_link ); ?>"><?php echo esc_url( $timetics_join_link ); ?></a>
                        </p>
                    </div>

                <?php else : ?>

                    <div class="single-data-entry" style="margin: 10px 0 20px;">
                        <p style="font-weight: 600; font-size: 14px; line-height: 1; color: #0C274A; margin: 0 0 5px;">
                            <?php esc_html_e( 'Location:', 'timetics' );?>
                        </p>
                        <p style="font-weight: 400; font-size: 14px; color: #556880; margin: 0;">
                            <?php echo esc_html( $timetics_location ) ;?>
                        </p>
                    </div>

                <?php endif;?>

                <?php do_action( 'timetics_new_event_email', $this->booking, 'customer' ); ?>

            <?php else: ?>
                <p class="greeting" style="color: #556880; margin-bottom: 5px">
                    <?php
                    /* translators: %s: Recipient name */
                    printf( esc_html__( 'Hi %s,', 'timetics' ), esc_html( $timetics_customer_name ) );?>
                </p>

                <p style="color: #556880; margin-bottom: 5px"><?php esc_attr_e( 'A new meeting has been scheduled', 'timetics' );?></p>

                <div class="data-wrapper" style="border: 1px solid #E2ECF4; border-radius: 12px; padding: 30px; margin: 24px 0;">
                    <div class="single-data-entry" style="margin: 0 0 20px;">
                        <p style="font-weight: 600; font-size: 14px; line-height: 1; color: #0C274A; margin: 0 0 5px;"><?php echo esc_html__( 'Meeting Name:', 'timetics' ); ?></p>
                        <p style="font-weight: 400; font-size: 14px; color: #556880; margin: 0;">
                            <?php echo esc_html( timetics_replace_placeholder( $timetics_email_title, $timetics_placeholders ) ); ?>
                        </p>

                    </div>
                    <div class="single-data-entry" style="margin: 0 0 20px;">
                        <p style="font-weight: 600; font-size: 14px; line-height: 1; color: #0C274A; margin: 0 0 5px;"><?php echo esc_html__( 'Organized By:', 'timetics' ); ?></p>
                        <p style="font-weight: 400; font-size: 14px; color: #556880; margin: 0;">
                            <?php echo esc_html( $timetics_staff_name );?> -
                            <a style="color: #3161F1" href="mailto:<?php echo esc_attr( $timetics_staff_email )?>"><?php echo esc_html( $timetics_staff_email ); ?></a>
                        </p>
                    </div>

                    <div class="single-data-entry" style="margin: 10px 0 20px;">
                        <p style="font-weight: 600; font-size: 14px; line-height: 1; color: #0C274A; margin: 0 0 5px;"><?php echo esc_html__( 'Date and time:', 'timetics' ); ?></p>
                        <p style="font-weight: 400; font-size: 14px; color: #556880; margin: 0;"><?php
                        /* translators: 1: Time, 2: Day, 3: Date, 4: Timezone */
                        printf( esc_html__( '%1$s, %2$s %3$s (%4$s)', 'timetics' ), esc_html( $timetics_time ), esc_html( $timetics_day ), esc_html( $timetics_date ), esc_html( $timetics_timezone ) );?></p>
                    </div>

                    <?php if ( 'google-meet' === $timetics_location_type && $timetics_join_link ): ?>
                        <div class="single-data-entry" style="margin: 10px 0 20px;">
                            <p style="font-weight: 600; font-size: 14px; line-height: 1; color: #0C274A; margin: 0 0 5px;">
                                <?php esc_html_e( 'Location:', 'timetics' );?>
                            </p>
                            <img width="110" style="margin: 5px 0;" src="<?php echo esc_url( TIMETICS_PLUGIN_URL . 'assets/images/social-icons/google-meet.svg' ); ?>" alt="Google Meet">
                            <p style="font-weight: 400; font-size: 14px; color: #556880; margin: 0;">
                                <?php echo esc_html__('Joining link:', 'timetics') ;?>
                                <a style="color: #3161F1" href="<?php echo esc_url( $timetics_join_link ); ?>"><?php echo esc_url( $timetics_join_link ); ?></a>
                            </p>
                        </div>
                    <?php else : ?>
                        <div class="single-data-entry" style="margin: 10px 0 20px;">
                            <p style="font-weight: 600; font-size: 14px; line-height: 1; color: #0C274A; margin: 0 0 5px;">
                                <?php esc_html_e( 'Location:', 'timetics' );?>
                            </p>
                            <p style="font-weight: 400; font-size: 14px; color: #556880; margin: 0;">
                                <?php echo esc_html($timetics_location) ;?>
                            </p>
                        </div>
                    <?php endif;?>

                    <?php do_action( 'timetics_new_event_email', $this->booking, 'customer' ); ?>
                    <?php if($timetics_timezone) :?>
                        <div class="single-data-entry" style="margin: 10px 0 20px;">
                            <p style="font-weight: 600; font-size: 14px; line-height: 1; color: #0C274A; margin: 0 0 5px;"><?php echo esc_html__( 'Invitee Time Zone:', 'timetics' ); ?></p>
                            <p style="font-weight: 400; font-size: 14px; color: #556880; margin: 0;"><?php echo esc_html( $timetics_timezone ); ?></p>
                        </div>
                    <?php endif;?>

		    <?php do_action( 'timetics_new_seats', $this->booking, 'customer' ); ?>

                </div>
            <?php endif;?>

            <p style="color: #556880; margin-bottom: 0; font-size: 15px; font-weight: 600; line-height: 1;"><?php echo esc_html__( 'Need to make changes to this meeting?', 'timetics' ); ?></p>
            <table cellspacing="0" cellpadding="0" border="0" style="margin: 35px 0 40px;">
                <tr>
                    <td style="padding-right: 10px;">
                        <a style="padding:  9px 11px 10px 11px; border-radius: 5px; font-weight: 600; font-size: 13px; border: 1px solid #D8DCE2; text-decoration: none; color: #3161F1; text-align: center; white-space: nowrap;" href="<?php echo esc_url( $timetics_booking_reschedule_url ); ?>">
                            <?php echo esc_html__( 'Reschedule', 'timetics' ); ?>
                        </a>
                    </td>
                    <td>
                        <a style="padding:  9px 11px 10px 11px; border-radius: 5px; font-weight: 600; font-size: 13px; border: 1px solid #D8DCE2; text-decoration: none; color: #3161F1; text-align: center; white-space: nowrap;" href="<?php echo esc_url( $timetics_booking_cancel_url ); ?>">
                            <?php echo esc_html__( 'Cancel', 'timetics' ); ?>
                        </a>
                    </td>
                </tr>
            </table>
            <p style="font-weight: 400; font-size: 14px; color: #556880; margin: 0;"><?php echo esc_html__('Thank you!', 'timetics'); ?></p>
        </div>
        <?php do_action('timetics_email_footer', $timetics_customer_email) ;?>
    </div>
</div>
```
