I’m trying to figure out the best way to add custom menu attributes without using a plugin. I have a site using a custom theme and need to make sure this is setup at theme activation vs needing to setup a plugin as well.
Is there a function I can plug into for this?
Filter
nav_menu_link_attributes
:This works with WordPress < 3.6:
it is nice work. but i want to little bit extra more, trying but can not figure out yet how.
i want some value change to menu items name. ex data-hover=”contact us”