The cron job responsible for sending the automatic “Send reminder email!” is named:
setup_wpestate_full_invoice_payment_reminder
What This Cron Does
-
It runs daily.
-
It sends 1 automatic email to users with confirmed bookings that are scheduled to start 3 days from the current day.
-
There is a maximum of 3 reminder emails allowed per booking:
-
1 automatic email (via cron)
-
2 manual emails (sent from the admin panel)
-
Cron Configuration
The cron details are set in the file: wprentals/libs/events.php
To change the number of days before check-in when the reminder is sent:
In the wpestate_full_invoice_payment_reminder_function
, locate the line with this formula and change 3 to your preferred number of days:
To change the maximum number of reminder emails allowed, adjust the condition:
if ($sent_no < 3) {
How to Disable the Cron
Comment this code from libs/events.php
How to change the number of days for “pay until”
In the “My Bookings” dashboard page, bookings display a payment deadline, which by default is the start date of the booking.
To show an earlier date (e.g., 2 days before check-in):
Go to dashboard\templates\unit-templates\balance_display.php file
In there you have $booking_from_date that holds the actual date.
So you could try to do something like
$date = new DateTime($booking_from_date ); $date->modify('-2 days'); //Use the date in 'YYYY-MM-DD' format $new_date = $date->format('Y-m-d');
and use
$new_date instead of $booking_from_date in line 5 of that file