Show Product Category Description inside Accordion on WooFood


If you want to show the product description of the category you have added inside description under Products > Categories on WooCommerce inside the accordion of WooFood before products you can use the following snippet on your functions.php inside your child theme

add_action('woofood_after_products_wrapper_open', 'wpslash_show_category_description', 10, 2);

function  wpslash_show_category_description($cat, $ids)
    $term_object = get_term_by( 'slug', $cat, 'product_cat' );
    echo $term_object->description;