Automattic\WooCommerce\Internal\Admin\Notes
FullRefundFixDataToolNotice::is_applicable
Should this note exist?
Метод класса: FullRefundFixDataToolNotice{}
Хуков нет.
Возвращает
bool.
Использование
$result = FullRefundFixDataToolNotice::is_applicable();
Код FullRefundFixDataToolNotice::is_applicable() FullRefundFixDataToolNotice::is applicable WC 11.2.2
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();
}