Add attribute to Nav Walker in WP (I think it's more a PHP issue)
问题 I'm writing here, because I think it's more PHP related problem, than WordPress. I've used the menu walker below to display dynamic submenus with great effect in the past. I'm using directly copy&pasted function from wordpress dev page and it was enough to me. However, now I'm struggling to make a little adjustment to add ID attribute to UL because I'm trying to make dropdowns with MaterializeCSS framework. I"ve succesfully added ID to match data-activates in anchor data-activates="dropdown1"