_nav_menu_item_id_use_once

Advertisement

Private Access Private Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Summery Summery

Prevents a menu item ID from being used more than once.

Syntax Syntax

_nav_menu_item_id_use_once( string $id, object $item )

Parameters Parameters

$id

(Required)

$item

(Required)

Return Return

(string)

Source Source

File: wp-includes/nav-menu-template.php

 * @since 3.0.0
 *
 * @param array    $items The menu items, sorted by each menu item's menu order.
 * @param int      $depth Depth of the item in reference to parents.
 * @param stdClass $r     An object containing wp_nav_menu() arguments.
 * @return string The HTML list content for the menu items.
 */
function walk_nav_menu_tree( $items, $depth, $r ) {

Advertisement

Changelog Changelog

Changelog
Version Description
3.0.1 Introduced.

Advertisement

Leave a Reply