Automattic\WooCommerce\Internal\DataStores\Orders
OrdersTableDataStore::should_backfill_post_record
Helper method to check whether to backfill post record.
Метод класса: OrdersTableDataStore{}
Хуков нет.
Возвращает
bool.
Использование
// private - только в коде основоного (родительского) класса $result = $this->should_backfill_post_record();
Код OrdersTableDataStore::should_backfill_post_record() OrdersTableDataStore::should backfill post record WC 11.1.1
private function should_backfill_post_record() {
$data_sync = wc_get_container()->get( DataSynchronizer::class );
return $data_sync->data_sync_is_enabled();
}