Skip to content

Instantly share code, notes, and snippets.

@shahidulislamus
Created January 25, 2015 06:03
Show Gist options
  • Save shahidulislamus/7549ae2142f0a47d9223 to your computer and use it in GitHub Desktop.
Save shahidulislamus/7549ae2142f0a47d9223 to your computer and use it in GitHub Desktop.
to call a menu in may be header.php ======hear all value is default value ========but i can not understand the items_wrap
<?php
$defaults = array(
'theme_location' => '',
'menu' => '',
'container' => 'div',
'container_class' => '',
'container_id' => '',
'menu_class' => 'menu', //this class is for ul=""
'menu_id' => '',
'echo' => true,
'fallback_cb' => 'wp_page_menu', //this is from a function there a falll back system define
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', //i don't understand that
'depth' => 0,
'walker' => ''
);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment