Trigger_Conditions::unique_recipes( $matched_recipe_ids,  $count )


Parameters Parameters

$matched_recipe_ids

(Required)

$count

(Required)


Top ↑

Return Return

(mixed)


Source Source

File: src/core/lib/recipe-parts/triggers/trait-trigger-conditions.php

	protected function unique_recipes( $matched_recipe_ids, $count ) {

		/*
		 * If it's only one recipe, just return the first recipe
		 */
		if ( 1 === (int) $count ) {
			$matched_recipe_ids = array_shift( $matched_recipe_ids );
		}

		return $matched_recipe_ids;
	}