Automattic\WooCommerce\Internal\Admin

Analytics::should_show_refund_fix_toolprivateWC 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

true|false.

Usage

// private - for code of main (parent) class only
$result = $this->should_show_refund_fix_tool(): bool;

Changelog

Since 10.8.0 Introduced.

Analytics::should_show_refund_fix_tool() code WC 11.0.0

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