Last active
January 2, 2017 03:03
-
-
Save jennimckinnon/fa72db481c92a967d74e to your computer and use it in GitHub Desktop.
An example of registering multiple menus in WordPress.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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