Site icon Hip-Hop Website Design and Development

Customized Admin Menu Order for all Consumer Roles

I’ve reordered the admin menu gadgets by:

perform custom_menu_order($menu_ord) {
if (!$menu_ord) return true;

return array(
    'index.php', // Dashboard
    'edit.php?post_type=web page', // Pages
    'edit.php?post_type=sp_faq', // FAQs
    'gf_edit_forms', // Varieties
    'woocommerce', // Woocommerce
    'edit.php?post_type=product', //Merchandise
    'edit.php', // Posts/Information
    'edit.php?post_type=occasion', // Occasions
    'add.php', // Media
    'themes.php', // Look
    'plugins.php', // Plugins
    'customers.php', // Customers
    'instruments.php', // Instruments
    'options-general.php', // Settings
);
}
add_filter('custom_menu_order', 'custom_menu_order'); // Activate custom_menu_order
add_filter('menu_order', 'custom_menu_order');

This works nice for the Admin person function, nonetheless, doesn’t work for different roles. How do I prolong this practice menu order to all person roles?