Im using a bootstrap nav walker for a wordpress site and trying as im trying to re-create a premium theme (only temporary) so matching their markup to save time.
I need to add a attribute to the <ul> so that its <ul data-plugin="menu">... but i cant see anything which can help me how to do so. I can see how to add attributes to menu links but not the menu itself (without adding it via jQuery etc).
My output for the menu is pretty simple:
<?php
wp_nav_menu( array(
'menu' => 'top',
'depth' => 2,
'container' => false,
'menu_class' => 'site-menu scrollable-content',
'walker' => new wp_bootstrap_navwalker())
);
?>