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.

Метод класса: Analytics{}

Хуков нет.

Возвращает

bool.

Использование

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

Список изменений

С версии 10.8.0 Введена.

Код Analytics::should_show_refund_fix_tool() WC 11.2.2

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' );
}