'3',
'name' => esc_html__( 'Email Notification', 'all-in-one-reservation' ),
'title' => esc_html__( 'Email Notification', 'all-in-one-reservation' ),
'desc' => esc_html__( 'Email & Notification settings.', 'all-in-one-reservation' ),
'filter' => 'aior_add_in_notification_settings',
);
self::create_rs_tab( $nav_args );
add_filter(
'aior_add_in_notification_settings',
function () {
$aior_builder = new Aior_Builder();
$rf_data = Aior_Reservation_Form::get_settings();
$content_1 = 'Thank you {first_name},
We have successfully received your reservation request #{reservation_id}. Your booking is awaiting to be confirmed from site administrator. We will send you updates to the email address you provided.';
$content_2 = 'Hi {site_name},
We have one new reservation request with reservation id #{reservation_id}.
Reservation Details
---------------------------------
Reservation Date : {reservation_date}
Reservation Time : {reservation_time_from} to {reservation_time_to}
Number of Guests : {reservation_time_to}
Phone No. : {reservation_phone_no}
Name : {first_name} {last_name}
Email : {reservation_user_email}
Note : {reservation_user_note}
Thanks,
{site_name}';
$content_3 = 'Hi {first_name},
We have received your reservation request #{reservation_id}.
Your Reservation Details
---------------------------------
Reservation Date : {reservation_date}
Reservation Time : {reservation_time_from} to {reservation_time_to}
Number of Guests : {reservation_number_guest}
Phone No : {reservation_phone_no}
{site_name} administrator will check your request asap and once it confirmed from our side then you will get your reservation confirmation via email from us.
Thanks,
{site_name}';
$content_4 = 'Hi {first_name},
We have confirmed your reservation #{reservation_id}.
Your Reservation Details
---------------------------------
Reservation Date : {reservation_date}
Reservation Time : {reservation_time_from} to {reservation_time_to}
Number of Guests : {reservation_number_guest}
Phone No. : {reservation_phone_no}
If you are willing to cancel this reservation then please click on below link.
{cancel_link}
Thanks,
{site_name}';
$content_5 = 'Hi {first_name},
We have cancelled your reservation with reservation #{reservation_id}.
Your Reservation Details
---------------------------------
Reservation Date : {reservation_date}
Reservation Time : {reservation_time_from} to {reservation_time_to}
Number of Guests : {reservation_number_guest}
Phone No. : {reservation_phone_no}
If you are willing to add new reservation then please go through below link
{reservation_link}
Thanks,
{site_name}';
?>
{reservation_id}
{first_name}
{last_name}
{reservation_date}
{reservation_time_from}
{reservation_time_to}
{reservation_number_guest}
{reservation_phone_no}
{reservation_user_email}
{reservation_user_note}
{cancel_link}
{reservation_link}
{site_name}
{home_url}
{date}
{time}