I've read the questions already asked but they didn't answer my question. But they were sucessful in confusing me more. There are hooks, render functions of two types, theme functions, pre-processing functions, processing functions. In every question I read over internet the answer is different every time. My head's gonna explode.
Coming to question, I need just the text
& href
from menu-item or link. I'll handle the rest.
How I want it?
//I need control over the HTML wrapper elements for menu
foreach $menu_items as $menu_item:
if(has_submenu($menu_item)):
print "custom html here";
foreach $menu_item as $sub_menu_item:
print "custom html here".$sub_menu_item['name'].$sub_menu_item['href']."custome html here";
endif
print "custom html here".$menu_item['name'].$menu_item['href']."custome html here";