Languages: English • 日本語 (Add your language)
Registers multiple custom navigation menus in the new custom menu editor of WordPress 3.0. This allows for the creation of custom menus in the dashboard for use in your theme.
See register_nav_menu() for creating a single menu, and Navigation Menus for adding theme support.
<?php register_nav_menus( $locations ); ?>
None.
add_action( 'after_setup_theme', 'register_custom_nav_menus' ); function register_custom_nav_menus() { register_nav_menus( array( 'pluginbuddy_mobile' => 'PluginBuddy Mobile Navigation Menu', 'footer_menu' => 'My Custom Footer Menu', ) ); }
add_theme_support( 'menus' );
wp-includes/nav-menu.php
.