[in_eu]

[in_eu]You are from the European Union (accept HTML)[/in_eu]

This shortcode displays or hides content based on whether the visitor is from a country within the European Union (EU).

Parameters

  • default – (accepts: text) – Text to display if the visitor is not from the EU (optional)
  • exclude – (accepts: comma-separated text) – Hides the content for specified locations (continent, country, region, or city)
  • include – (accepts: comma-separated text) – Shows the content only for specified locations
  • cache – (no value) – Enables AJAX-based caching for geo detection. Automatically applied if caching is enabled in plugin settings

Return

Displays the inner content only if the visitor is from an EU member country. If not, it returns the default text (if defined).

Examples

Show message for EU visitors with fallback:

[in_eu default="You are NOT from the European Union"]You are from the European Union[/in_eu]

Returns:
You are NOT from the European Union

Was this page helpful?