sinanisler logo

Move wp-admin menu item to bottom

I don’t like when setting pages or unrelated to content menu items on top so of the list. I just move them down like this.


This works for bricks can be applied to anything.

Just change the id of the item. You can get that id from the f12 elements.


// Move Bricks Menu to End of the wp-admin menu list
function custom_menu_order($menu_ord) {
    if (!$menu_ord) return true;
    // Identify the index of 'bricks'
    foreach ($menu_ord as $index => $item) {
        if ($item == 'bricks') {
            $bricks_menu = $item;
            unset($menu_ord[$index]);
            break;
        }
    }
    // Append 'bricks' to the end
    if (isset($bricks_menu)) {
        $menu_ord[] = $bricks_menu;
    }
    return $menu_ord;
}
add_filter('menu_order', 'custom_menu_order');
add_filter('custom_menu_order', function(){ return true; }); // Activate custom_menu_order

Leave the first comment