sfw_sync_item

Description

Synchronize an Item

Triggers Creation or Update of an Entity item

Since: 1.0.0

Code

<?php function sfw_sync_item( $entity, $spreadshirt_id, $force_update = false ){ 
	 … 
 } ?>

Parameter

$entity
(mixed) An Entity
$spreadshirt_id
(string) A Spreadshirt Id
$force_update
(boolean) If Updates should be forced

Default: false

Return

(string|WP_Error) WP_Error or string indicating the performed action 'create', 'update' or 'skip'. If $force_update is set to true, no items will be skipped.

File

core/components/synchronization/functions-synchronization.php