sfw_sync_items

Description

Sync multiple Entity Items

Synchronizes multiple Items as long as no error happens

Since: 1.0.0

Code

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

Parameter

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

Default: false

Return

(true|WP_Error) Returns true if all items were successfully synced, else WP_Error

File

core/components/synchronization/functions-synchronization.php