wp menu declaration

Solutions on MaxInterview for wp menu declaration by the best coders in the world

showing results for - "wp menu declaration"
Orlane
05 May 2016
1function register_my_menus() {
2  register_nav_menus(
3    array(
4      'header-menu' => __( 'Header Menu' ),
5      'extra-menu' => __( 'Extra Menu' )
6    )
7  );
8}
9add_action( 'init', 'register_my_menus' );
10
Alice
03 May 2020
1<?php wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); ?>
queries leading to this page
wp menu declarationwp menu declaration