I have set 4 sub-menu under My Account menu. Here is the image:
but on the front-end, I can't see the submenu when I hover over my account page.
I am using the following code to show the full menu:
<?php
if(is_user_logged_in()){
$theme_location = 'after_login_menu';
} else {
$theme_location = 'header_menu';
}
$args = array(
'container' => 'div',
'container_class' => 'navbar-collapse collapse',
'container_id' => 'th_navbar_toggle',
'menu_class' => 'navbar-nav ml-auto',
'menu_id' => '',
'echo' => true,
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'item_spacing' => 'preserve',
'walker' => new wp_bootstrap_navwalker(),
'theme_location' => $theme_location,
'menu' => $theme_location,
'depth' => 5,
);
wp_nav_menu($args);
?>
Is there anything I am missing?

