WPSlash

How to set Pickup Only on WooFood

Thursday September 5, 2019

With these few lines of code you can disable Delivery Option on WooFood for WooCommerce and set the pickup option as default. Copy and paste the following two snippets to your functions.php inside your Theme or Child Theme folder

You will have to use the woofood_order_types_filter filter to return an array including only the pickup option like the following example

add_filter( 'woofood_order_types_filter', 'custom_hook_pickup_only' );
function custom_hook_pickup_only( $order_types ) {
   $new_order_types = array('pickup'=>esc_html__('Pickup', 'woofood-plugin'));
   return $new_order_types;
}

You will need also to change the default order type , so you need to use also the woofood_default_order_type_filter like on the following snippet

add_filter( 'woofood_default_order_type_filter', 'custom_hook_pickup_as_default' );
function custom_hook_pickup_as_default( $default_order_type ) {
   $new_default_order_type = "pickup";
   return $new_default_order_type;
}

If you are still not able to do it yourself , feel free to submit a ticket here 

Leave a Comment

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

Related Articles

Tutorials

How to Set Up Automated Backup and Disaster Recovery for Your WooCommerce Restaurant Website: Protect Orders, Menus, and Customer Data from Crashes, Hacks, and Human Error (Complete Guide)

Why Restaurant Websites Need a Bulletproof Backup Strategy Picture this: it’s 6:30 PM on a Friday, your busiest night of the week. Orders are pouring in through your WooCommerce restaurant site, the kitchen is humming, and then — nothing. Your website goes dark. Maybe a plugin update went sideways. Maybe your hosting provider had a […]
April 7, 2026
Tutorials

How to Build a Customer Loyalty and Rewards Program for Your WooCommerce Restaurant: Points, Punch Cards, and VIP Tiers to Drive Repeat Orders (Complete Guide)

Why Restaurant Loyalty Programs Matter for Online Ordering A customer places their first order through your restaurant’s website. The food arrives hot, the experience is seamless, and they’re satisfied. But will they come back? Without a deliberate strategy to encourage repeat visits, there’s a strong chance they’ll drift to a competitor or default back to […]
April 7, 2026
Tutorials

How to Secure Your WooCommerce Restaurant Website: Protect Customer Payment Data, Prevent Hacking, and Set Up SSL, Firewalls, and PCI Compliance (Complete Guide)

Why Restaurant Website Security Matters More Than You Think A single data breach can shut down a restaurant faster than a failed health inspection. That’s not hyperbole — when a small restaurant loses customer credit card data, the average cost of remediation, fines, and lost business can reach tens of thousands of dollars. For an […]
April 7, 2026