sfw_item_exists

Description

Checks if a WordPress resource for given Entity and Spreadshirt ID exists

Since: 1.0.0

For further information see: sfw_get_item

Code

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

Parameter

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

Return

(bool)

File

core/includes/functions-entity.php