sfw_get_spreadshirt_id_by_wpobj

Description

Retrieve a Spreadshirt Id for a given WordPress resource

Since: 1.0.0

Code

<?php function sfw_get_spreadshirt_id_by_wpobj( $wpobj ){ 
	 … 
 } ?>

Parameter

$wpobj
(object) A post or term that is registered as Entity

Return

(string|false) Returns the Spreadshirt Id if found, else false

File

core/includes/functions-entity.php