There is no option for this, but you can extend the 'walker' object that WordPress uses to create the menu HTML. Only one method needs to be overridden:
class My_Walker_Nav_Menu extends Walker_Nav_Menu {
function start_lvl(&$output, $depth) {
$indent = str_repeat("", $depth);
$output .= "
$indent<ul class="my-sub-menu">
";
}
}
Then you just pass an instance of your walker as an argument to wp_nav_menu
like so:
'walker' => new My_Walker_Nav_Menu()
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…