0

How I can hide add product button from admin panel?

see image below for more clarification.

enter image description here

1 Answer 1

1

I am also not so sure but you can override Magento\Catalog\Block\Adminhtml\Product.php file by giving in di.xml and can use $this->buttonList->remove('add_new'); in _prepareLayout function.

Note: You can not use plugin as it is not public function.

3
  • This solution worked! Thanks Commented Jan 28, 2022 at 18:17
  • @FaisalSheikh pls vote, thanks!!!
    – Ankit
    Commented Jan 29, 2022 at 3:46
  • Can you give me a complete answer
    – sq y
    Commented Feb 16 at 15:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.