| 开发者 | deb_ugger |
|---|---|
| 更新时间 | 2026年10月3日 12:46 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
atu 1234-5678 → ATU12345678)ATU12345678BE0123456789 or BE1123456789BG123456789HR12345678901CY12345678ACZ12345678DK12345678EE123456789FI12345678FRXX123456789DE123456789EL123456789HU12345678IE1234567AIT12345678901LV12345678901LT123456789LU12345678MT12345678NL123456789B01PL1234567890PT123456789RO12345678SK1234567890SI12345678ESA12345678SE123456789012uid_vat form tag to your form template:
[uid_vat uid-field] – optional field
[uid_vat* uid-field] – required field
With placeholder:
[uid_vat* eu-vat-id placeholder "e.g. ATU12345678"]
Required validation uses the Contact Form 7 Schema-Woven Validation (CF7 5.6+).
WPForms: EU VAT ID field
Drag the EU VAT ID field from the field panel into your form. It supports required validation, custom labels, placeholder text and real-time inline feedback while the user types.
Fluent Forms: EU VAT ID field
Drag the EU VAT ID field from the General Fields section into your form.
Styling the inline feedback
The real-time feedback (WPForms) uses the class .vatigo-feedback. To hide it, add this to your theme's CSS:
.vatigo-feedback { display: none; }
For developers
Register an integration for any other form plugin:
add_action( 'vatigo_register_integrations', function( $manager ) { $manager->register( new My_Custom_Integration() ); } );
Your class must extend Vatigo_Integration_Base and implement all abstract methods. The settings page shows a complete example.
Coming in Vatigo Pro
Vatigo checks whether a VAT ID has a valid format for its EU country: correct country prefix, correct length and the right mix of digits and letters. This catches the vast majority of typos and incomplete entries before the form is submitted.
Not in the free version. The free version validates the format only, entirely offline. A live check against the official EU VIES database is planned for Vatigo Pro.
Contact Form 7, WPForms (Lite and Pro) and Fluent Forms. Other form plugins can be connected through the developer API.
Yes. "UID-Nummer" (Austria), "USt-IdNr." (Germany), "BTW-nummer" (Netherlands, Belgium), "numéro de TVA" (France), "Partita IVA" (Italy) and "NIF/CIF" (Spain) are all national names for the EU VAT identification number. Vatigo supports all 27 EU member states.
Vatigo validates EU VAT IDs only. Switzerland (CHE…), the United Kingdom (GB…, since Brexit) and Norway are not EU member states and are not supported.
Yes. Spaces, dots and dashes are removed and letters are converted to uppercase before validation, so atu 1234 5678 is accepted as ATU12345678.
No. All validation happens on your server. No data is sent to third parties.
Yes. Vatigo does not store or transmit any personal data. VAT IDs are validated in memory and discarded. What happens with the submitted form data is up to your form plugin.
Yes. Go to Settings → EU VAT Validator and enter a custom error message. Leave the field empty to use the default country-specific messages, which include an example of the expected format.
Yes. The feedback element uses the class .vatigo-feedback. You can hide or restyle it via your theme's CSS.
Yes. Extend Vatigo_Integration_Base and register your class via the vatigo_register_integrations action hook. See the settings page for a code example.