Disable Same Day Orders on WooFood

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;