Home » Php » php – magento remove admin menu item

php – magento remove admin menu item

Posted by: admin July 12, 2020 Leave a comment

Questions:

Is it possible, in magento, to remove a menu item in admin?

I have a new module and am pulling the reviews and ratings into a new section. I’m not opposed to leaving them also in the catalog section, but if its possible (and clean) I’d like to nip it out of there.

How to&Answers:

Add next lines to extension config.xml file:

<adminhtml>
   <menu>
      <catalog>
         <children>
            <reviews_ratings>
               <disabled>1</disabled>
            </reviews_ratings>
         </children>
      </catalog>
   </menu>
</adminhtml>

And clear the cache.