Move Fluent Ecosystem menus to the bottom (or top) of admin sidebar
I thought the admin menus were a little bit messy, so we have a nice tidy setup now...

Copy paste this snippet:
/**
* Move Fluent Ecosystem menus to the bottom (or top) of the admin sidebar.
*/
add_filter('custom_menu_order', '__return_true');
add_filter('menu_order', function($menu_order) {
if (!$menu_order) return $menu_order;
// Define the desired order for the Fluent group
$fluent_items = [
'fluentcrm-admin',
'fluent-support',
'fluent-booking',
'fluent_forms',
'fluent-boards',
'fluent-cart',
'fluent-affiliate',
'fluent-community',
'fluent-auth'
];
// 1. Identify which Fluent items are actually active/present in the current menu
$to_move = array_intersect($fluent_items, $menu_order);
// 2. Remove them from their original positions
$menu_order = array_diff($menu_order, $to_move);
// 3. Re-append them to the end of the menu array
return array_merge($menu_order, array_values($to_move)); // MOVE TO BOTTOM
// return array_merge(array_values($to_move), $menu_order); // MOVE TO TOP
});Deckard CainΒ thanks! Funny, I like my fluent ecosystem at the top of my admin menu!
π
I updated original code, just uncomment accordingly. Quick change to the order of the arguments in theΒ array_mergeΒ function
// 3. Prepend them to the start of the menu array
return array_merge(array_values($to_move), $menu_order);Deckard CainΒ thanks! Much appreciated
Thanks for sharing. I just used your snippet. In case someone needs to add FluentPlayer to the list, add the slug fluentplayer (not fluent-player) to the $fluent_items array.