How to add schema markup to WordPress menu function
To get that kind of control you will probably need to create a custom Walker. Take a look at the defaults for wp_nav_menu() $defaults = array( ‘theme_location’ => ”, ‘menu’ => ”, ‘container’ => ‘div’, ‘container_class’ => ”, ‘container_id’ => ”, ‘menu_class’ => ‘menu’, ‘menu_id’ => ”, ‘echo’ => true, ‘fallback_cb’ => ‘wp_page_menu’, ‘before’ => … Read more