add a div at the end of wp_nav_menu function in wordpress

I want to add a div at the bottom of the wordpress wp_nav_menu so it will look like this:

<ul>
  <li>...</li>
  <li>...</li>
  <li>...</li>

  <div class="my-div"></div>
</ul>

I can’t seem to find a way to do it in the function document on wordpress, can anyone please help?

Related posts

Leave a Reply

3 comments