1. masuk ke {plugin_path}/templates/forms/bookingform/booking-fields.php
2. tambahkan di bawah script berikut :
<?php do_action('register_form'); ?> <?php endif; ?>
scriptnya :
<?php if( is_user_logged_in() ): ?> <?php // Show and edit the phone number $EM_Person = new EM_Person( get_current_user_id() ); ?> <p> <label for='dbem_phone'><?php _e('Phone','dbem') ?></label> <input type="text" name="dbem_phone" id="dbem_phone" class="input" <?php echo "value='{$EM_Person->data->phone}'"; ?> /> </p> <?php endif; ?>
3. edit halaman {plugin_path}/classes/em-booking.php
Tambahkan dibawah script :
$this->booking_comment = (!empty($_REQUEST['booking_comment'])) ? wp_kses_data(stripslashes($_REQUEST['booking_comment'])):'';
Scriptnya :
if (!empty($_REQUEST['dbem_phone'])) { $this->booking_comment .= "\n\nPhone: ". wp_kses_data(stripslashes($_REQUEST['dbem_phone'])); }