sfw_get_entity_items

Description

Efficiently retrieve multiple Entity items

Since: 1.0.0

Code

<?php function sfw_get_entity_items( $entity, $spreadshirt_ids ){ 
	 … 
 } ?>

Parameter

$entity
(string|SFW_Entity) An Entity name or Entity Instance
$spreadshirt_ids
(int|array) Spreadshirt Id or Array of Ids

Return

(array) Array of objects

File

core/includes/functions-entity.php