Walker_Nav_Menu example


function walk_nav_menu_tree( $items$depth$args ) {
    $walker = ( empty( $args->walker ) ) ? new Walker_Nav_Menu() : $args->walker;

    return $walker->walk( $items$depth$args );
}

/** * Prevents a menu item ID from being used more than once. * * @since 3.0.1 * @access private * * @param string $id * @param object $item * @return string */
Home | Imprint | This part of the site doesn't use cookies.