Customizing dynamic menu using filter
-
Hi
I have created a wordpress site with no menu location set so all pages are shown on the page. When new pages and subpages are created the pages are automatically shown. This is the behaviour I need.
But I also need to customize the menu like adding extra items and changing links and so but add_filter( ‘wp_nav_menu_items’, ‘dynamic_label_change’, 10, 2 ); only works when I have set a menu as the primary menu.
Is it possible to customize the menu when there is actually no menu set?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Customizing dynamic menu using filter’ is closed to new replies.