Adding a section in line at the end of the main navigation menu in php
https://developer.wordpress.org/reference/hooks/wp_nav_menu_menu-slug_items/ function my_nav_menu_primary_navigation($items, $args) { $items .= ‘<li>Hello :D</li>’; return $items; } add_filter( “wp_nav_menu_{MENU SLUG}_items”, “my_nav_menu_primary_navigation”, 10, 2 ); find {MENU SLUG} EDIT: The “wp_nav_menu_menu-slug_item” filter runs at the end near the end of wp_nav_menu, $ items is a string containing the HTML extructura the menu and $ args are the arguments that you passed … Read more