Wordpress. Adding menu item manually in wp_nav_menu
Just for the case someone needs this:
Menu items can be added manually by applying filters:
wp_nav_menu_items
- for all menuswp_nav_menu_{$menu->slug}_items
- for menu with particular slug
Also by changing items_wrap
, e.g., by removing <ul>
and adding it explicitly in the theme - this way you will be able to add own items.