title: Add an extra element to Wordpress nav items with children
body: <p>I have a nested dropdown. On elements that have children, I would like to add a chevron beside the link text. The current HTML looks like this:</p>
  
  <pre><code>&lt;ul class="primary-menu"&gt;
      &lt;li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-has- 
      children menu-item-59"&gt;
          &lt;a href="#"&gt;Europe&lt;/a&gt;
          &lt;ul class="sub-menu"&gt;&lt;/ul&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>I would like to use an add_filter hook to turn this markup into this:</p>
  
  <pre><code>&lt;ul class="primary-menu"&gt;
      &lt;li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-has- 
      children menu-item-59"&gt;
          &lt;div&gt;
            &lt;a href="#"&gt;Europe&lt;/a&gt;
            &lt;img src="chevron.svg"&gt;
          &lt;/div&gt;
          &lt;ul class="sub-menu"&gt;&lt;/ul&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>I was hoping to find a filter that would return me an array of menu items. If the menu item has the class of 'menu-item-has-children' I would like to change the HTML within the item.</p>