Skip to content

Instantly share code, notes, and snippets.

@vicso-name
Created October 24, 2021 06:01
Show Gist options
  • Save vicso-name/6796fa2c4725265167e9f5096a11ae68 to your computer and use it in GitHub Desktop.
Save vicso-name/6796fa2c4725265167e9f5096a11ae68 to your computer and use it in GitHub Desktop.
register_nav_menus() This function automatically registers custom menu support for the theme
<?
register_nav_menus( $locations = array() );
// $locations Associative array of menu location identifiers (like a slug) and descriptive text.
register_nav_menus( array(
'header_menu' => 'Main menu',
'footer_menu' => 'Footer menu'
) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment