The reason is that I would like to show both languages on each items of the menu. I want to have nested code without re-write the whole menu thing by HTML(if possible..) , but based on wp_nav_menu.
Now i could only display the second language on each item separately from the menu via hooking wp_nav_menu_objects.
Is it possible to take the var into the wp_nav_menu on each item in link_before/after as something like this?
'link_before' => $items[$i],
//$items - second languages items
//$i - something like loop counter in wp_nav_menu on each item (I know it doesnt exist in core..)
———
Is it possible to add dynamic var into “link_before/after” in wp_nav_menu?
Or I need to make it happen by other measures? thanks a lot. gratitude for any attentions and helps.