Last active
December 18, 2015 13:18
-
-
Save cpswsg/5788638 to your computer and use it in GitHub Desktop.
Inclui o Menu Dinâmico no WordPress.
This file contains 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
// Menu Dinâmico | |
add_action( 'init', 'menu_dinamico' ); | |
function menu_dinamico(){ | |
register_nav_menus( | |
array( | |
'top-menu' => __( 'Menu Topo' ), | |
'main-menu' => __( 'Menu Principal' ), | |
'footer-menu' => __( 'Menu Rodapé' ) | |
) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment