WPSlash

Disable Same Day Orders on WooFood

Tuesday January 5, 2021

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;
}

Leave a Comment

Your email address will not be published. Required fields are marked *

×

🔥 ONE DAY ONLY OFFER 🔥

Upgrade FoodMaster Today

Normally your license is limited to 1 Website.

Today only, get a LIFETIME Unlimited Websites License for just:
$499

✔ Unlimited Client Websites
✔ Unlimited Personal Projects
✔ Future Updates Included
✔ Save Hundreds on Additional Licenses

Offer Ends In: