sfw_maybe_guess_entity_spreadshirt_id

Description

tries to get Spreadshirt Id for Item

Since: 1.0.0

Code

<?php function sfw_maybe_guess_entity_spreadshirt_id( $entity, $mixed = false ){ 
	 … 
 } ?>

Parameter

$entity
(mixed) An Entity
$mixed
(mixed) Any value that identifies an Entity Item or false for automatic Entity guessing

Default: false

Return

(false|object) Will return false if no Item was found, else returns the Items Spreadshirt Id

File

core/includes/functions-entity-getter.php