title: How can I add Wordpress's 'nav_menu_link_attributes' to a specific menu?
body: <p>I'm working on a Wordpress website that has multiple menus set up. I wanted to add custom attributes to the menu items in one of the menus using 'nav_menu_link_attributes', but that adds the attributes to all of the menus. How would I limit this to just one specific menu? I can't find any documentation on this question.</p>
  
  <p>My current code is:</p>
  
  <pre><code>function add_menu_atts($atts){
    $atts['data-inventory-link'] = $atts['href'];
    $atts['data-model'] = $atts['title'];
    return $atts;
  }
  add_filter('nav_menu_link_attributes', 'add_menu_atts');
  </code></pre>