title: Adding custom <li> to Wordpress navigation menu
body: <p>I just cant fully understand how custom walkers work in worpress:</p>
  
  <p>Code in theme's home.php (actually all code is included from other file to not mess HTML) looks like this:</p>
  
  <pre><code>/**
   * Contains wordpress function with array with parameters
   * @return string HTML output
   */
  function show_main_navigation() {
      return wp_nav_menu(
          array(
              'theme_location' =&gt; 'header-menu',
              'echo' =&gt; false,
              'depth' =&gt; '-1',
              'walker' =&gt; new Last_Item_Walker()
          )
      );
  }
  </code></pre>
  
  <p>Walker looks like this:</p>
  
  <pre><code>class Last_Item_Walker extends Walker_Nav_Menu { 
  
      function end_lvl( &amp;$output, $depth = 0, $args = array() ) {
          $indent = str_repeat("\t", $depth);
          $output .= '&lt;li class="spec"&gt;&lt;a href="#" title="title"&gt;title&lt;/a&gt;&lt;/li&gt;'; // my custom &lt;li&gt;
          $output .= "$indent&lt;/ul&gt;\n";
      }
  }
  </code></pre>
  
  <p>Overwritten method just does not work.</p>
  
  <p>If I try to overwrite another method, for example:</p>
  
  <pre><code>class Last_Item_Walker extends Walker_Nav_Menu { 
  
      function end_el( &amp;$output, $item, $depth = 0, $args = array() ) {
              $output .= "&lt;br&gt;"; // for demonstration
          $output .= "&lt;/li&gt;\n";
      }
  }
  </code></pre>
  
  <p>This one works, adds br tag but this is not what i want, i want to customize last li before /ul.</p>
  
  <p>Can somebody help me with this?</p>