Trigger_Conditions::unique_recipes( $matched_recipe_ids, $count )
Contents
Parameters Parameters
- $matched_recipe_ids
-
(Required)
- $count
-
(Required)
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; }
Expand full source code Collapse full source code View on Github