I am trying to override wp menu markup and add additional div around each sub-menu ul.
Something like this
<ul>
<li><a>Coffee</li>
<li><a>Tea</a>
<div class="holder">
<ul class="sub-menu">
<li><a>Black tea</a></li>
<li><a>Green tea</a></li>
</ul>
</div>
</li>
<li><a>Milk</a>
<div class="holder">
<ul class="sub-menu">
<li><a>Red</a></li>
<li><a>Blue</a></li>
</ul>
</div>
</li>
</ul>
Is it possible to do this inside ?
$defaults = array(
'theme_location' => 'primary',
'menu' => '',
'container' => 'div',
'container_class' => '',
'container_id' => 'mega-menu',
'menu_class' => 'mega',
'menu_id' => '',
'echo' => true,
'fallback_cb' => 'wp_page_menu',
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'depth' => 0,
'walker' => ''
);
Any help is appreciated.