Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::maybe_backfill_post_record()privateWC 1.0

Helper function to decide whether to backfill post record.

Method of the class: OrdersTableDataStore{}

No Hooks.

Return

null. Nothing (null).

Usage

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

OrdersTableDataStore::maybe_backfill_post_record() code WC 9.3.3

private function maybe_backfill_post_record( $order ) {
	if ( $this->should_backfill_post_record() ) {
		$this->backfill_post_record( $order );
	}
}