Automattic\WooCommerce\Internal\Admin\Notes
RefundDoubleCountToolNotice::is_applicable
Should this note exist?
The note only nudges merchants who have not run the tool yet.
Method of the class: RefundDoubleCountToolNotice{}
No Hooks.
Returns
bool.
Usage
$result = RefundDoubleCountToolNotice::is_applicable();
RefundDoubleCountToolNotice::is_applicable() RefundDoubleCountToolNotice::is applicable code WC 11.3.0
public static function is_applicable() {
if ( ! FeaturesUtil::feature_is_enabled( 'analytics' ) ) {
return false;
}
return Analytics::is_refund_double_count_tool_applicable()
&& '' === Analytics::get_refund_double_count_state()['status'];
}