Automattic\WooCommerce\Internal\Admin

Analytics::should_show_refund_fix_tool │ private static │ WC 10.8.0

Whether the full refund fix tool should be shown to the merchant.

Returns true when the store still has legacy refund data OR when the fix was recently queued and the merchant has not yet dismissed the tool. New stores (where the option was never set) never see the tool.

Method of the class: Analytics{}

No Hooks.

Returns

bool.

Usage

$result = Analytics::should_show_refund_fix_tool(): bool;

Changelog

Since 10.8.0 Introduced.

Analytics::should_show_refund_fix_tool() code WC 11.3.0

private static function should_show_refund_fix_tool(): bool {
	return ! OrderUtil::uses_new_full_refund_data()
		|| 'yes' === get_option( 'woocommerce_analytics_show_old_refund_data_tool' );
}