sfw_create_item

Description

Triggers creation of new Entity Item

Since: 1.0.0

For further information see: SFW_Entity

Code

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

Parameter

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

Return

(WP_Error|object)

File

core/includes/functions-entity.php