Answers for "add more than one new navigation menu location"

PHP
1

add more than one new navigation menu location

function wpb_custom_new_menu() {
  register_nav_menus(
    array(
      'my-custom-menu' => __( 'My Custom Menu' ),
      'extra-menu' => __( 'Extra Menu' )
    )
  );
}
add_action( 'init', 'wpb_custom_new_menu' );
Posted by: Guest on October-29-2020

Code answers related to "add more than one new navigation menu location"

Browse Popular Code Answers by Language