Created
September 25, 2015 17:01
-
-
Save DrewAPicture/ced2f83e94975b6fcdc7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp_nav_menu( apply_filters( 'widget_nav_menu_args', $nav_menu_args, $nav_menu, $args, $instance, $this ) ); | |
// $nav_menu_args | |
Array | |
( | |
[fallback_cb] => | |
[menu] => stdClass Object | |
( | |
[term_id] => 176 | |
[name] => Short | |
[slug] => short | |
[term_group] => 0 | |
[term_taxonomy_id] => 177 | |
[taxonomy] => nav_menu | |
[description] => | |
[parent] => 0 | |
[count] => 3 | |
[filter] => raw | |
) | |
) | |
// $nav_menu | |
stdClass Object | |
( | |
[term_id] => 176 | |
[name] => Short | |
[slug] => short | |
[term_group] => 0 | |
[term_taxonomy_id] => 177 | |
[taxonomy] => nav_menu | |
[description] => | |
[parent] => 0 | |
[count] => 3 | |
[filter] => raw | |
) | |
// $args | |
Array | |
( | |
[name] => Widget Area | |
[id] => sidebar-1 | |
[description] => Add widgets here to appear in your sidebar. | |
[class] => | |
[before_widget] => <aside id="nav_menu-2" class="widget widget_nav_menu"> | |
[after_widget] => </aside> | |
[before_title] => <h2 class="widget-title"> | |
[after_title] => </h2> | |
[widget_id] => nav_menu-2 | |
[widget_name] => Custom Menu | |
) | |
// $instance | |
Array | |
( | |
[title] => Navigation | |
[nav_menu] => 176 | |
) | |
// $this | |
WP_Nav_Menu_Widget Object | |
( | |
[id_base] => nav_menu | |
[name] => Custom Menu | |
[widget_options] => Array | |
( | |
[classname] => widget_nav_menu | |
[description] => Add a custom menu to your sidebar. | |
) | |
[control_options] => Array | |
( | |
[id_base] => nav_menu | |
) | |
[number] => 2 | |
[id] => nav_menu-2 | |
[updated] => | |
[option_name] => widget_nav_menu | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment