![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/gg.corals.io/wp-content/plugins/quickcal/includes/ajax/admin/ |
<?php $timestamp = get_post_meta($appt_id,'_appointment_timestamp',true); $timeslot = get_post_meta($appt_id,'_appointment_timeslot',true); $timeslots = explode('-',$timeslot); $timestamp_start = strtotime(date_i18n('Y-m-d',$timestamp).' '.$timeslots[0]); $current_timestamp = current_time('timestamp'); // Send an email to the user? if ( $timestamp_start >= $current_timestamp ): $email_content = get_option('booked_cancellation_email_content'); $email_subject = get_option('booked_cancellation_email_subject'); if ($email_content && $email_subject): $token_replacements = quickcal_get_appointment_tokens( $appt_id ); $email_content = quickcal_token_replacement( $email_content,$token_replacements ); $email_subject = quickcal_token_replacement( $email_subject,$token_replacements ); do_action( 'booked_cancellation_email', $token_replacements['email'], $email_subject, $email_content ); endif; endif; do_action( 'booked_appointment_cancelled', $appt_id ); wp_delete_post( $appt_id, true );