How to change check-out in Booking Form

Example:

Rental Day: 3 day. When the customer choose Check-in on 12 July 2024, so the check-out will display 14 July 2024.

You can add bellow code to functions.php file in child theme

add_filter( 'ovabrw_calculate_checkout_by_days', function( $checkout_date, $checkin_date, $numberof_days ) {
    if ( $numberof_days > 0 ) $numberof_days -= 1;
    $checkout_date = $checkin_date + absint( $numberof_days )*24*60*60;

    return $checkout_date;
}, 10, 3 );

Last updated