Automattic\WooCommerce\Internal\DataStores\Orders

DataSynchronizer::cleanup_synchronization_state()publicWC 1.0

Cleanup all the synchronization status information, because the process has been disabled by the user via settings, or because there's nothing left to synchronize.

Метод класса: DataSynchronizer{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$DataSynchronizer = new DataSynchronizer();
$DataSynchronizer->cleanup_synchronization_state();

Код DataSynchronizer::cleanup_synchronization_state() WC 9.7.1

public function cleanup_synchronization_state() {
	delete_option( 'woocommerce_initial_orders_pending_sync_count' );
}