Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::maybe_backfill_post_record()privateWC 1.0

Helper function to decide whether to backfill post record.

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

No Hooks.

Return

null. Nothing.

Usage

// private - for code of main (parent) class only
$result = $this->maybe_backfill_post_record( $order );
$order(\WC_Abstract_Order) (required)
Order object.

Code of OrdersTableDataStore::maybe_backfill_post_record() WC 7.1.0

private function maybe_backfill_post_record( $order ) {
	$data_sync = wc_get_container()->get( DataSynchronizer::class );
	if ( $data_sync->data_sync_is_enabled() ) {
		$this->backfill_post_record( $order );
	}
}