October CMS resources and help articles

Simple and to the point. Optimized by the community.

Remove another plugin's main menu items

1
by OFFLINE, last modified on September 21st, 2020

Place the following event listener in your Plugin's boot method to remove another plugin's menu items:

Event::listen('backend.menu.extendItems', function($manager) {
    $manager->removeMainMenuItem('October.Cms', 'cms');
    $manager->removeSideMenuItem('October.Cms', 'cms', 'pages');
});

Discussion

0 comments

We use cookies to measure the performance of this website. Do you want to accept these cookies?