Automattic\WooCommerce\Internal\DataStores\Orders
DataSynchronizer::cleanup_synchronization_state()
Cleanup all the synchronization status information, because the process has been disabled by the user via settings, or because there's nothing left to syncrhonize.
{} Это метод класса: DataSynchronizer{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$DataSynchronizer = new DataSynchronizer(); $DataSynchronizer->cleanup_synchronization_state();
Код DataSynchronizer::cleanup_synchronization_state() DataSynchronizer::cleanup synchronization state WC 6.6.1
public function cleanup_synchronization_state() { delete_option( self::INITIAL_ORDERS_PENDING_SYNC_COUNT_OPTION ); delete_option( self::PENDING_SYNC_IS_IN_PROGRESS_OPTION ); }