Answers.Body: <p>Unfortunately, nothing I'm aware of for Craft 2, I'm afraid.</p>
  <p>In Craft 3, there's still not a great solution, but there is a <code>$append</code> parameter where you can kind of force it to go to the top of the list: <a href="https://github.com/yiisoft/yii2/blob/master/framework/base/Event.php#L103" rel="nofollow noreferrer">https://github.com/yiisoft/yii2/blob/master/framework/base/Event.php#L103</a></p>
  <p>But that would stop a plugin that was loaded after yours to use the same parameter and come out on top.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-31T08:43:05.937Z
Answers.Text: okay, thanks Brad. "issue" with Snaptcha where my plugin was being called first so Snaptcha was rejecting the submission but after my code which partially defeated the purpose. think have managed a fix by calling the Snaptcha service validate method directly from my own plugin. cheers!
Answers.UserDisplayName: Cole Henley
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-30T18:57:39.360Z
Answers.LastActivityDate: 2020-07-30T18:57:39.360Z
Answers.UserDisplayName: Brad Bell
Body: <p>I have a Craft site which has 2 different plugins listening to the same event (the Contact Form beforeSend event).</p>
  <p>The outcome is one is being triggered before the other and this is causing issues. Is there any way of specifying the priority of one plugin over the other or ensuring that they happen in a specific sequence?</p>
  <p>Cole</p>
  
Tags: <plugin-development><craft2>
Title: Craft 2: possible to control plugin triggering order?
ThreadText: # Craft 2: possible to control plugin triggering order?
  
  (Asked by: username_0 on 2020-07-30)
  
  I have a Craft site which has 2 different plugins listening to the same event (the Contact Form beforeSend event).
  
  The outcome is one is being triggered before the other and this is causing issues. Is there any way of specifying the priority of one plugin over the other or ensuring that they happen in a specific sequence?
  
  username_0
  
  **Tags:** plugin-development, craft2
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-07-30. Score: 0 | Accepted answer
  
  Unfortunately, nothing I'm aware of for Craft 2, I'm afraid.
  
  In Craft 3, there's still not a great solution, but there is a `$append` parameter where you can kind of force it to go to the top of the list: <https://github.com/yiisoft/yii2/blob/master/framework/base/Event.php#L103>
  
  But that would stop a plugin that was loaded after yours to use the same parameter and come out on top.
  
  > **Comments:**
  > **username_0**: okay, thanks username_1. "issue" with Snaptcha where my plugin was being called first so Snaptcha was rejecting the submission but after my code which partially defeated the purpose. think have managed a fix by calling the Snaptcha service validate method directly from my own plugin. cheers!  
  
  ---
  
  