sfw_get_item

Description

Retrieve a Post or Term for given Entity and Spreadshirt ID

Since: 1.0.0

Code

<?php function sfw_get_item( $mixed_entity, $spreadshirt_id ){ 
	 … 
 } ?>

Parameter

$mixed_entity
(string|SFW_Entity) An Entity name or Entity Instance
$spreadshirt_id
(string)

Return

(object|false) Return WordPress resource or false if none exists

File

core/includes/functions-entity.php