<p>Called while testing a webhook against additional criteria to see if it should be sent in extensions of \XF\Webhook\Criteria\AbstractCriteria::isUnknownMatched().</p>

<p>Callback signature:</p>
<blockquote><code><em>string</em> $rule, <em>array</em> $criteria, <em>array</em> $data, <em>string</em> $contentType, &amp;$returnValue</code></blockquote>

<p>Arguments:</p>
<ol>
	<li><code><em>string</em> $rule</code> - text identifying the criteria that should be checked.</li>
	<li><code><em>array</em> $criteria</code> - data defining the conditions of the criteria.</li>
	<li><code><em>array</em> $data</code> - the payload data being sent and which criteria should be checked against.</li>
	<li><code><em>string</em> $contentType</code> - text identifying what the content type the payload data is.</li>
	<li><code><em>boolean</em> &amp;$returnValue</code> - the event code should set this to <b>true</b> if a criteria check matches.</li>
</ol>

<p>Example:</p>
<pre>public static function criteriaWebhook(string $rule, array $criteria, array $data, string $contentType, &amp;$returnValue)
{
	switch ($rule)
	{
		case 'foo_field':
		if ($data['foo_field'] == $criteria['foo'])
		{
			$returnValue = true;
		}
		break;
		
		case 'bar_field':
		if ($data['bar_field'] == $criteria['bar_value'])
		{
			$returnValue = true;
		}
		break;
	}
}</pre>