Automattic\WooCommerce\Utilities

OrderUtil::uses_new_full_refund_datapublic staticWC 1.0

Checks if the new full refund data is used.

Method of the class: OrderUtil{}

No Hooks.

Returns

true|false.

Usage

$result = OrderUtil::uses_new_full_refund_data();

OrderUtil::uses_new_full_refund_data() code WC 10.3.6

public static function uses_new_full_refund_data() {
	$db_version                = get_option( 'woocommerce_db_version', null );
	$uses_old_full_refund_data = get_option( 'woocommerce_analytics_uses_old_full_refund_data', 'no' );
	if ( null === $db_version ) {
		return 'no' === $uses_old_full_refund_data;
	}
	return version_compare( $db_version, '10.2.0', '>=' ) && 'no' === $uses_old_full_refund_data;
}