235 | | $output .= ob_get_clean(); |
| 235 | $item_output = ob_get_clean(); |
| 236 | |
| 237 | /** |
| 238 | * Filter a menu item's starting output. |
| 239 | * |
| 240 | * The menu item's starting output only includes `$args->before`, the opening `<a>`, |
| 241 | * the menu item's title, the closing `</a>`, and `$args->after`. Currently, there is |
| 242 | * no filter for modifying the opening and closing `<li>` for a menu item. |
| 243 | * |
| 244 | * @since 4.4.0 |
| 245 | * |
| 246 | * @param string $item_output The menu item's starting HTML output. |
| 247 | * @param object $item Menu item data object. |
| 248 | * @param int $depth Depth of menu item. Used for padding. |
| 249 | * @param array $args An array of {@see wp_nav_menu()} arguments. |
| 250 | */ |
| 251 | $output .= apply_filters( 'walker_nav_menu_edit_start_el', $item_output, $item, $depth, $args ); |