Automattic\WooCommerce\Internal\Admin\Notes
FullRefundFixDataToolNotice::is_applicable
Should this note exist?
Method of the class: FullRefundFixDataToolNotice{}
No Hooks.
Returns
bool.
Usage
$result = FullRefundFixDataToolNotice::is_applicable();
FullRefundFixDataToolNotice::is_applicable() FullRefundFixDataToolNotice::is applicable code WC 11.3.0
public static function is_applicable() {
if ( ! FeaturesUtil::feature_is_enabled( 'analytics' ) ) {
return false;
}
// The notice follows the underlying data state, not the tool-row
// visibility flag (`woocommerce_analytics_show_old_refund_data_tool`),
// so it auto-hides once the fix has been applied.
return ! OrderUtil::uses_new_full_refund_data();
}