sfw_item_last_sync

Description

Retrieve the timestamp when an Entity Item was synced the last time

Since: 1.0.0

Code

<?php function sfw_item_last_sync( $entity, $spreadshirt_id ){ 
	 … 
 } ?>

Parameter

$entity
(object) SFW_Entity
$spreadshirt_id
(string) A Spreadshirt Id

Return

(false|int) Timestamp of the last synchronization. Zero if no synchronization was succesfully performed yet. Returns 1 if no synchronization was performed for the current plugin version

File

core/components/synchronization/functions-synchronization.php