function categoryListShortcode() { $args = array('type' => 'product', 'taxonomy' => 'menu'); $categories = get_categories($args); $tpl = new Tpl(); echo $tpl->get_category_list($categories); }