Documentation

Add these snippets to your child theme’s functions.php file or use a plugin like Code snippets. Don’t add code directly to the parent theme’s functions.php file as it will be overridden by updates. Customize the texts/values in red to whatever you need.

Disable the current day after 12pm (or any other time)

add_filter( 'easy_booking_product_first_available_date', 'wceb_set_date_to_next_day', 10, 2 );

function wceb_set_date_to_next_day( $first_available_date, $product ) {

    date_default_timezone_set( 'Europe/Paris' );

    $time    = date( 'H:i:s', strtotime( '12:00:00' ) );
    $timenow = date( 'H:i:s', strtotime( 'now' ) );

    if ( $timenow > $time ) {
        $first_available_date += 1;
    }

    return $first_available_date;

}