Custom Admin Menu Order for all User Roles
I've reordered the admin menu items through:
function custom_menu_order($menu_ord) {
if (!$menu_ord) return true;
return array(
'index.php', // Dashboard
'edit.php?post_type=page', // Pages
'edit.php?post_type=sp_faq', // FAQs
'gf_edit_forms', // Forms
'woocommerce', // Woocommerce
'edit.php?post_type=product', //Products
'edit.php', // Posts/News
'edit.php?post_type=event', // Events
'upload.php', // Media
'themes.php', // Appearance
'plugins.php', // Plugins
'users.php', // Users
'tools.php', // Tools
'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 great for the Admin user role, however, does not work for other roles. How do I extend this custom menu order to all user roles?
Topic menu-order admin-menu user-roles Wordpress
Category Web