📅  最后修改于: 2022-03-11 14:53:36.295000             🧑  作者: Mango
function wpb_custom_new_menu() {
register_nav_menu('my-custom-menu',__( 'My Custom Menu' ));
}
add_action( 'init', 'wpb_custom_new_menu' );