'update_menu_item_cache' => true,
'tax_query' => array
( array
( 'taxonomy' => 'nav_menu',
'field' => 'term_taxonomy_id',
'terms' =>
$menu->term_taxonomy_id,
),
),
);
$args =
wp_parse_args( $args,
$defaults );
if ( $menu->count > 0
) { $items =
get_posts( $args );
} else { $items = array
();
} $items =
array_map( 'wp_setup_nav_menu_item',
$items );
if ( !
is_admin() ) { // Remove invalid items only on front end.
$items =
array_filter( $items, '_is_valid_nav_menu_item'
);
} if ( ARRAY_A ===
$args['output'
] ) {