Skip to content

Instantly share code, notes, and snippets.

@jennimckinnon
Last active January 2, 2017 03:03
Show Gist options
  • Save jennimckinnon/fa72db481c92a967d74e to your computer and use it in GitHub Desktop.
Save jennimckinnon/fa72db481c92a967d74e to your computer and use it in GitHub Desktop.
An example of registering multiple menus in WordPress.
function register_my_menus() {
register_nav_menus(
array(
'new-menu' => __( 'New Menu' ),
'another-menu' => __( 'Another Menu' ),
'an-extra-menu' => __( 'An Extra Menu' )
)
);
}
add_action( 'init', 'register_my_menus' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment