我构建了一个插件,可以创建如下自定义菜单:
add_menu_page( \'Wholesale Pricing\', \'Wholesale\', \'manage_options\', \'woo-wholesale\', \'woo_wholesale_page_call\');
我现在正试图在下面添加一个子页面项。我读了抄本,想出了:add_submenu_page( \'woo-wholesale\', \'Registrations\', \'Registrations\', \'manage_options\', \'woo-wholesale-registrations\', \'wwpr_page_call\' );
我猜这是不正确的,因为子菜单项没有显示。有人能解释一下吗?