Filter
rpress_reservation_first_open_scan_days
On this page
Filters how many days are scanned for the first bookable reservation date.
Used by rpress_reservation_first_open_date(), which picks the date preselected on the reservation form. It checks each day from today for a slot with room, stopping at the end of the booking window. The default is 14 days. The result is cached for a short time.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$value | int | Default number of days to scan. |
Return value#
int. Number of days to scan, minimum 1.
Example#
function my_reservation_scan_days( $days ) {
return 30;
}
add_filter( 'rpress_reservation_first_open_scan_days', 'my_reservation_scan_days' );
Notes#
The first parameter is a literal default (14), not a variable.
Source#
Applied in:
includes/features/reservations/functions.php(line 287), inrpress_reservation_first_open_date()
See also#
Was this page helpful?
