Automattic\WooCommerce\Internal\Admin

Analytics::get_fresh_refund_double_count_state │ private static │ WC 1.0

Get the tool state from the database rather than the request cache, so that a new run or a cancellation saved by another request is seen.

Method of the class: Analytics{}

No Hooks.

Returns

array. Tool state, as get_refund_double_count_state() returns it.

Usage

$result = Analytics::get_fresh_refund_double_count_state(): array;

Analytics::get_fresh_refund_double_count_state() code WC 11.3.0

private static function get_fresh_refund_double_count_state(): array {
	// Clear 'notoptions' too, or a request that cached the option as missing never sees it once created.
	wp_cache_delete( self::REFUND_DOUBLE_COUNT_OPTION, 'options' );
	wp_cache_delete( 'notoptions', 'options' );

	return self::get_refund_double_count_state();
}