QuestionQ24Verified/Working with AdminCopy linkReport a problemAsk AstroTutorSave questionHow can a developer prioritize a plugin’s execution, where possible?AThe developer can use sortOrder property by specifying a lower value than the target plugin.BThe developer can use sortOrder property by specifying a higher value than the target plugin.CThis cannot be achieved as the plugins are always executed by their module's load order in app/etc/config.php file.Show AnswerAnswerExplanationFor plugins observing the same method, the sortOrder attribute controls priority. Plugins begin execution from the lowest to the highest sortOrder, so assigning a lower value than the target plugin gives the plugin earlier execution priority. Module load order is relevant only when plugins have the same sortOrder or no value is specified.Learn moreAdobe Commerce Plugins documentationShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion