Disable Same Day Orders on WooFood 3
The below article is for WooFood , Food Ordering Plugin for WordPress and WooCommerce. If you don't already have it . Please take a look on the product page

Copy and paste the following snippet to your functions.php on your child theme to disable Same Day Orders .

On the following code you will notice that we are using 2 different filters.

One for Delivery and one for Pickup . You can use both of theme or only the one of them if you want to apply this rule individually

add_filter('woofood_enable_today_date_pickup', 'wpslash_hook_disable_today');
add_filter('woofood_enable_today_date_delivery', 'wpslash_hook_disable_today');
function wpslash_hook_disable_today($bool)
	return false;
The above article is for WooFood Food Delivery Plugin for WooCommerce