If you want the options to be extensible by developers, just add a custom filter to the output:
wp_nav_menu( apply_filters( 'wpse119371_nav_menu_args', array(
'theme_location' => 'primary',
'container' => false,
// etc.
) ) );
Then, a developer merely has to add a filter callback:
function wpse119371_filter_nav_menu_args( $args ) {
// Modify $args
$args['container'] => 'div';
// etc.
// Return
return $args;
}
add_filter( 'wpse119371_nav_menu_args', 'wpse119371_filter_nav_menu_args' );
Related Posts:
- Customizing Only a Specific Menu using the “wp_nav_menu_items” Hook?
- How make top level menu item not have link, but have sub-menus that are linked?
- How to Hard Code Custom menu items
- How Does The Walker Class Work?
- Calling the Menu Title within wp_nav_menu array function
- How to stop mobile theme inheriting desktop navigation menu?
- Increase search results for Admin -> Appearance -> Menus -> Search (default is 10)
- Large WP 3.0 menu times out and won’t save
- How do I add the data-toggle=”modal” data-target=”#myModal” attribures to a WP Nav bar?
- How to highlight the right item in the navbar
- wp_nav_menu() not working on Custom Search Page
- Minor css-change based on topmenu – how?
- add the user name to menu when user is logged in [closed]
- Add class to all list items of wp_nav_menu
- Filter menu item to add classes/attributes?
- Edit html for menu items in default frontend menu
- Inserting PHP before a menu element, while using the inbuilt menu function wp_nav_menu()
- Add an extra field to the navigation menu box?
- Adding custom text in items titles from wp_nav_menu()
- Merge two separate WP menus into one in Mobile view
- Programmatically adding menu items function replicates in multiple menus
- How do i style the current menu anchor link’s parent anchor link? [closed]
- Does the menu item ID ever change?
- How to add a parameter to links in the nav menu?
- Why do the menu titles change with the renaming of pages?
- get menu id using its name
- Current menu item
- How to quickly create a dummy menu?
- wp_list_pages: only show subpages on the parent page?
- How do I remove the link element from the current page in a wp_list_pages menu?
- Altering html structure and creating custom menus
- How to construct a custom html for submenus
- JSON file export of nav menu
- WordPress get or set active menu class
- switch_to_blog() and wp_nav_menu() not functioning properly
- Generating wordpress menu – cant understand the config
- SlideDeck 2, make back-end visible for admins only
- How to add ID attribute to each submenu?
- Display menu locations in all sites of a multi site
- Making a navigation header menu with bulma, need some advice
- From a page, is it possible to find entry’s “menu_item_parent”?
- WordPress menu link not working
- How to retrieve parent menu item name of current submenu item
- Determine the last child of the parent menu WP Nav Walker
- Edit menu parent element
- Navigation doesn’t render when wp is hosted
- WordPress menu performance is slow when lot of items [closed]
- HTML list menu to WordPress menu
- Does is_child() exist in wp 3.5.1?
- Add “drop-down arrow” for menu items with sub-menus
- Cannot seem to replace the native menu with the menu I created, so 2 menus appear
- Main menu gets replaced when second menu is created
- Hide menu items if the page content is empty
- Output menu title
- Add Labels to Admin Menu ( How To )
- exclude pages in custom menu
- Adding new pages to Menu
- How to reference argument data for wp_nav_menu() from functions.php
- Hamburger Menu not working on reduced browser size
- Switch an entire nav menu if user is logged in
- WordPress functions.php does not affect the theme menus
- Showing the same menu in multiple location
- Drop Down menu expanded by default (on front page) [closed]
- wp_nav_menu with WP as pure CMS
- Simple form to add custom links to menu?
- Wrap wp_nav_menu output around option tags for select menu
- What’s the best way to customize the WordPress Menu Page (in admin)
- Catagorized hierarchy menu for PAGES!
- Making the menu toggled open on mobile devices Illustratr theme
- How to include second layer sub menu to Walker Nav?
- need help in wordpress navbar setup
- Event listener callback returns undefined element
- Add class to sub-menu from unrelated element
- How can I creat custom menu with bootstrap
- Add CSS Class to WordPress Menu Item Dependent on the Page the User is Visiting
- Menu walker: how to tell if a sub menu contains submenus?
- How do i make a custom top level dashboard menu item available for all users?
- Getting parent object_id of child menu items in WordPress menu
- How to remove a sub-menu using walker hooks/filters without relying on a custom walker?
- Walker or wp_get_nav_menu_items VS jQuery
- I can’t correctly display menu
- Calling wordpress menu outside ignores custom menu item
- Specific Page that convert Hyperlink to anchor in nav menu
- How can I make this custom design menu work in wordpress?
- Active menu item / category
- Add different span class to wp nav menu
- Disappearing items in menu
- Menu not saving in dashboard
- Help with changing style of the extended menu drop down [closed]
- Where these arguments are defined?
- How do i keep my current page menu highlighted on pagination?
- How we show pages in dropdown
- Menu support for touch devices
- WordPress Flyout Menus
- highlight parent page on menu when child page is on sidebar (and not on menu)
- How to set menu Display location
- How to add custom menu to block theme?
- get menu name for the current displayed page
- child theme font awesome icons not working
- How to replicate a mobile menu from a site to a wordpress site [closed]