[is_vat]You are under VAT (accept HTML)[/is_vat]
This shortcode allows you to display or hide Value-Added Tax (VAT) information on your website based on the visitor’s country and tax rules.
Parameters
- default – (accepts: text) – Text to be shown if VAT conditions are not met (optional)
- exclude – (accepts: comma-separated text) – Hides the content for specified locations (continent, country, region, or city)
- include – (accepts: comma-separated text) – Displays the content only for specified locations
- cache – (no value) – Enables AJAX-based caching to fetch geo information. Automatically applied if caching is enabled in settings
Return
Displays the inner content only if the visitor is from a VAT-enforced region. Otherwise, shows the default
text if defined.
Examples
Display VAT message with fallback text:
[is_vat default="You are NOT under VAT"]You are under VAT[/is_vat]
Returns:
You are NOT under VAT