无法自定义管理菜单顺序


Unable to customize the admin menu order

我想在wordpress仪表板中自定义菜单顺序。我使用了以下代码,当我插入自定义插件的页面时,它不会按顺序排列。任何帮助将不胜感激。

 function custom_menu_order($menu_ord) {  
    if (!$menu_ord) return true;  
    return array(  
        'index.php', // Dashboard  
        'my_pludin_page.php',//my plugins home page
        'separator1', // First separator  
        'edit.php', // Posts  
        'upload.php', // Media  
        'link-manager.php', // Links  
        'edit.php?post_type=page', // Pages  
        'edit-comments.php', // Comments  
        'separator2', // Second separator  
        'themes.php', // Appearance  
        'plugins.php', // Plugins  
        'users.php', // Users  
        'tools.php', // Tools  
        'options-general.php', // Settings  
        'separator-last', // Last separator  
    );  
    }  
    add_filter('custom_menu_order', 'custom_menu_order');
    add_filter('menu_order', 'custom_menu_order');  
 add_filter('custom_menu_order', '__return_true'); // SET CUSTOMISE MENU ORDER TRUE
    add_filter('menu_order', 'custom_menu_order');  // CUSTOMISE YOUR MENU