current_menu_id_bootstrap; // Assign the dynamic id for use inside the dropdown menu, ie, sub-menu for Bootstrap $id = 'aria-labelledby="navbar-dropdown-menu-link-' . $current_menu_id->ID . '"'; if ( isset( $args->item_spacing ) && 'discard' === $args->item_spacing ) { $t = ''; $n = ''; } else { $t = "\t"; $n = "\n"; } $indent = str_repeat( $t, $depth ); /** * Add the classes for the dropdown menu in WordPress * * 1. For WordPress default: '.sub-menu' * 2. For Bootstrap Sub-Menu: '.dropdown-menu' */ $classes = array( 'sub-menu', 'dropdown-menu' ); /** * Filters the CSS class(es) applied to a menu list element. * * @since 4.8.0 * * @param array $classes The CSS classes that are applied to the menu `