Changeset 54178
- Timestamp:
- 09/15/2022 12:30:54 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-walker-nav-menu.php
r52652 r54178 160 160 161 161 /** 162 * Filters the ID a pplied to a menu item's list item element.162 * Filters the ID attribute applied to a menu item's list item element. 163 163 * 164 164 * @since 3.0.1 165 165 * @since 4.1.0 The `$depth` parameter was added. 166 166 * 167 * @param string $menu_i d The ID that isapplied to the menu item's `<li>` element.168 * @param WP_Post $menu_item The current menu item.169 * @param stdClass $args An object of wp_nav_menu() arguments.170 * @param int $depth Depth of menu item. Used for padding.167 * @param string $menu_item_id The ID attribute applied to the menu item's `<li>` element. 168 * @param WP_Post $menu_item The current menu item. 169 * @param stdClass $args An object of wp_nav_menu() arguments. 170 * @param int $depth Depth of menu item. Used for padding. 171 171 */ 172 172 $id = apply_filters( 'nav_menu_item_id', 'menu-item-' . $menu_item->ID, $menu_item, $args, $depth );
Note: See TracChangeset
for help on using the changeset viewer.