📌  相关文章
📜  wordpress 添加子菜单 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:44.476000             🧑  作者: Mango

代码示例1
add_menu_page('My Custom Page', 'My Custom Page', 'manage_options', 'my-top-level-slug');
add_submenu_page( 'my-top-level-slug', 'My Custom Page', 'My Custom Page',
    'manage_options', 'my-top-level-slug');
add_submenu_page( 'my-top-level-slug', 'My Custom Submenu Page', 'My Custom Submenu Page',
    'manage_options', 'my-secondary-slug');