Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::log_diff()privateWC 1.0

Log difference between post and COT data for an order.

Method of the class: OrdersTableDataStore{}

No Hooks.

Return

null. Nothing.

Usage

// private - for code of main (parent) class only
$result = $this->log_diff( $diff ): void;
$diff(array) (required)
Difference between post and COT data.

OrdersTableDataStore::log_diff() code WC 7.1.0

private function log_diff( array $diff ): void {
	// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_print_r -- This is a log function.
	$this->error_logger->notice( 'Diff found: ' . print_r( $diff, true ) );
}