❓You are debugging a feature where you've implemented a plugin to modify the behavior of a public function. However, you notice that changes are not reflected on the frontend. As you investigate, you realize that a third-party extension already has a plugin for the same method, leading to a conflict. What is the best approach to resolve this conflict?
ℹ️ How should I fix a plugin conflict?
Use the sortOrder field.
Plugin execution can be easily sorted. Make sure to set a higher (or lower) sort order than the target plugin. Note that every plugin has a default of "O".
You can use negative sort orders, too.
---
Connect with Joseph:
LinkedIn: / maxwelljoseph
Twitter: / swiftotter_joe
https://swiftotter.com
/ swift_otter
/ swiftotterinc
Have you joined the free SwiftOtter Slack community? It's exploding and we don't want you to miss out. Go to https://swiftotter.com/slack to join for free and get plugged into what might be the best group of collaborating developers around!