is possible to override core plugin method by preference?

Means I need to override afterXyz method in my module by using preference.


1 Answer 1


You can disable the Plugin with disabled="true". For example:

<type name="Magento\Framework\App\Action\Action">
    <plugin name="storeCheck" disabled="true" />
    <plugin name="storeCheckCustom" type="Vendor\Module\Model\Plugin\StoreCheck" sortOrder="99" />

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.