Hi Martin,
Please add the following code to WP admin > Appointments > Settings > Custom Code > PHP text box:
<?php
add_filter( 'birchschedule_view_bookingform_get_thankyou_content', 'birchschedule_cc_view_bookingform_get_thankyou_content', 40, 2 );
function birchschedule_cc_view_bookingform_get_thankyou_content( $content, $appointment1on1_id ) { global $birchschedule; $appointment1on1 = $birchschedule->model->mergefields->get_appointment1on1_merge_values( $appointment1on1_id );
if ( $appointment1on1 && $appointment1on1['post_status'] == 'publish' ) {
return $content;
}
return '<p>' . __( 'The payment is being processed. Please refresh the page in a few seconds.', 'birchschedule' ) . '</p>';
}
?>