wordpress 添加自定义的一定级菜单

//添加项级菜单
function register_bwp_menu_page(){   
    add_menu_page( 'title标题', '菜单标题', 'administrator', '../wp-content/themes/yourthemes/myplugin/myplugin-index.php','','',100);   
   
}  
add_action('admin_menu', 'register_bwp_menu_page');

 

 myplugin目录为 yourthemes 主题目录下,新建的目录

你可能感兴趣的:(wordpress)