title: php find a menu item with class name and insert markup
body: <p>I have a wordpress menu created with one menu item that has the class 'wishlist'. Using the wordpress <strong>'wp_nav_menu_items'</strong> filter I can get the entire markup for all the menu items, in one long string:</p>
  
  <pre><code>public function wishlist_count( $items, $args ) {
      var_dump($items);
      return  $items;
  }
  </code></pre>
  
  <p>I am looking for the best approach using php, to first find only the menu item with the class <strong>'wishlist'</strong> and then insert some custom markup into that menu item. Then add the updated markup back to $items string before returning it.</p>
  
  <p>Here's what the $items string outputs:</p>
  
  <pre><code>&lt;li id="menu-item-10" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-10"&gt;
      &lt;a href="http://localhost/powell/shop/"&gt;Shop&lt;/a&gt;
      &lt;ul class="sub-menu"&gt;
          &lt;li id="menu-item-14" class="wishlist menu-item menu-item-type-post_type menu-item-object-page menu-item-14"&gt;
              &lt;a href="http://localhost/powell/wishlist/"&gt;Wishlist&lt;/a&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
  &lt;/li&gt;
  </code></pre>