sfw_get_post

Description

Retrieve WP_Post for given Entity and Spreadshirt ID

Since: 1.0.0

For further information see: sfw_get_item

Code

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

Parameter

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

Return

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

File

core/includes/functions-entity.php