I want to prevent a certain plugin from loading, namely 'authorization' plugin in


What i tried to do is to comment lines in di.xml where this plugin seems to be declared. After i modified the files, i removed var/generation, and var/di folders, cleared cache and ran grunt exec. These lines are in:


Unfortunately, plugin still keeps loading according to what xdebug shows me:enter image description here

So, how do i prevent the plugin from loading?


To disable a plugin, set disabled element to true. The default value is false.

Use disabled property to disable the core or third-party plugins in your di.xml file

You can reference https://devdocs.magento.com/guides/v2.0/extension-dev-guide/plugins.html for more information.

  • Oh, i read this several times but never saw this line about disabling. Thanks a lot! – Asadov Kamran May 30 '18 at 10:30

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.