Insert calendar into wp_nav_menu

Go to source

snippet :  PHPcopy
add_filter('wp_nav_menu_items','add_calendar', 10, 2);
function add_calendar($items, $args) {
    if( $args->theme_location == 'header-navigation' )
        return $items . '<li><a href="#">Calendar</a><ul class="sub-menu"><li>' . get_calendar(true,false) . '</li></ul></li>';
}

Insert calendar into wp_nav_menu is a post from: wpsnipp.comWordPress Snippets, Code, Hacks, 615+ for your wordpress theme or blog.