Skip to content

Instantly share code, notes, and snippets.

@AlexL-JWA
Created March 22, 2019 15:09
Show Gist options
  • Save AlexL-JWA/59286a2473b93c9c6c81ebe254a66028 to your computer and use it in GitHub Desktop.
Save AlexL-JWA/59286a2473b93c9c6c81ebe254a66028 to your computer and use it in GitHub Desktop.
WP Вывод menu
wp_nav_menu( [
'theme_location' => 'primary',
'menu' => 'Menu',
'container' => '',
'container_class' => '',
'container_id' => '',
'menu_class' => 'menu',
'menu_id' => '',
'echo' => true,
'fallback_cb' => 'wp_page_menu',
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'depth' => 0,
'walker' => '',
] );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment