sfw_get_term

Description

Retrieve WP_Term for given Entity and Spreadshirt ID

Since: 1.0.0

For further information see: sfw_get_item

Code

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

Parameter

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

Return

(WP_Term|false) Return WP_Term or false if none exists

File

core/includes/functions-entity.php