這可能有幫助。在wp-includes/nav-menu-template.php中有一個函數wp_nav_menu($ args = array()),其中菜單是creted。在功能存在$ deafults陣列loock像這樣:
$defaults = array(
'menu' => '', 'container' => 'div',
'container_class' => '',
'container_id' => '',
'menu_class' => 'menu',
'menu_id' => '',
'echo' => true,
'fallback_cb' => 'wp_page_menu',
'before' => '', 'after' => '',
'link_before' => '',
'link_after' => '',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'depth' => 0,
'walker' => '',
'theme_location' => '');
變化 'menu_class'=> '菜單' 到 'menu_class'=> '菜單my_class'