Closed gpedro closed 1 year ago
allows to add new admin menus using hooks
examples:
global $menus; // new menu $menus[] = [ 'name' => 'Custom Admin Tools', 'icon' => 'tools', 'order' => 21, 'link' => [ ['name' => 'BAdmin', 'link' => 'admin', 'order' => 2], ['name' => 'Admin', 'link' => 'admin', 'order' => 1] ] ]; // new sub menu on existing menu foreach ($menus as $i => $menu) { if (isset($menu['name']) && $menu['name'] === 'Tools') { $menus[$i]['link'][] = ['name' => 'Xablau', 'link' => 'admin', 'order' => 0]; break; } }
As always, great content from @gpedro!
Thanks for this contribution and love your idea!
allows to add new admin menus using hooks
examples: