WPSlash Licences

Add Custom Text before Products inside WooFood menu

Add Custom Text before Products inside WooFood menu – code snippet guide from WPSlash
Published
Updated
Reading time
1 minutes
Written by
WPSlash team

Here is a small guide on how to add custom text or html before the Product loop inside WooFood menu.

The following code will add “Your custom text goes here” when the Product Category Slug is burger-meals

Code
add_action('woofood_after_products_wrapper_open', 'wpslash_custom_text_before_product_wrapper', 10, 2);

function wpslash_custom_text_before_product_wrapper($cat_slug, $ids)
{
	if($cat_slug == "burger-meals")
	{
		echo "Your custom text goes here";
	}
}
All guides

FoodMaster (formerly WooFood)12 min read

Best Store Address Setup for Pickup

Compare single-address, multi-location, and directions-first pickup setups to reduce wrong-door visits and simplify checkout.

The plugins these guides are about

FoodMaster for restaurants, courier vouchers for the Greek market, marketplace sync and store tools, all for WooCommerce.

Browse plugins30-day money-back on every plugin