__('Please fill in the VAT number for the invoice.', 'ai-eshop-optimizer'), 'aieo/billing_irs' => __('Please fill in the tax office.', 'ai-eshop-optimizer'), 'aieo/billing_store' => __('Please fill in the profession/activity.', 'ai-eshop-optimizer'), ) as $key => $msg) { $val = isset($fields[$key]) ? trim((string) $fields[$key]) : ''; if ($val === '') { $errors->add('aieo_invoice_required_' . md5($key), $msg); } } } }