WPSlash

Disable default WooFood Accordion Caching

Tuesday July 28, 2020

The following code snippet will disable the default caching with transient of WooFood accordion shortcode

add_filter('woofood_accordion_transient', 'wpslash_woofood_disable_transient');
function wpslash_woofood_disable_transient($default)
{
	return null;
}

Leave a Comment

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

Related Articles

FoodMaster (formerly WooFood)

How to Build a Custom Restaurant Menu with Allergen Filters, Nutritional Info, and Dietary Labels in WooCommerce: Vegan, Gluten-Free, Keto, and Halal Tags for a Better Customer Experience (Complete Guide)

Why Allergen Information and Dietary Labels Matter for Your Restaurant Website A customer with a severe peanut allergy lands on your restaurant’s online menu. There’s no allergen information anywhere. They leave — and they’re never coming back. That lost sale is just the tip of the iceberg. Without clear dietary labeling, you’re losing revenue, risking […]
April 16, 2026
FoodMaster (formerly WooFood)

How to Set Up Time Slot-Based Ordering for Your WooCommerce Restaurant: Configurable Pickup and Delivery Time Slots, Slot Capacity Limits, and Preventing Order Overload During Peak Hours (Complete Guide)

Why Time Slot-Based Ordering Is Essential for Restaurant Websites Picture this: it’s Friday evening, and your online ordering system just accepted 47 orders in the span of 20 minutes. Your kitchen crew can realistically handle 15 orders per half hour. The result? Delivery times balloon from 30 minutes to over 90, customers start calling to […]
April 15, 2026
Tutorials

How to Set Up Stripe, PayPal, and Square Payment Gateways for Your WooCommerce Restaurant Ordering System: Step-by-Step Configuration, Transaction Fees Comparison, and Optimizing Checkout for Faster Food Orders (Complete Guide)

Why Payment Gateway Choice Matters for Restaurant Websites A customer is hungry, they’ve spent three minutes building the perfect pad thai order with extra peanuts and a side of spring rolls, and they hit “Checkout.” If the next screen loads slowly, asks them to create an account, or doesn’t support their preferred payment method, that […]
April 14, 2026