Automattic\WooCommerce\Internal\Admin\Notes
RefundDoubleCountToolNotice::is_applicable
Should this note exist?
The note only nudges merchants who have not run the tool yet.
Метод класса: RefundDoubleCountToolNotice{}
Хуков нет.
Возвращает
bool.
Использование
$result = RefundDoubleCountToolNotice::is_applicable();
Код RefundDoubleCountToolNotice::is_applicable() RefundDoubleCountToolNotice::is applicable 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'];
}