How I can hide add product button from admin panel?

see image below for more clarification.

enter image description here


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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