The woocs_geobone_ip filter controls the "first visit only" behaviour of the Geo IP rules.
By default FOX applies a Geo IP rule once per visitor: on the first request it stores a flag, sets the currency for the detected country and does not touch the choice again, so a visitor who then switches currency manually keeps their choice for the rest of the session. Returning false from this filter disables that first-visit bookkeeping, and the geolocation branch is then evaluated on the terms of whatever state the storage is in.
add_filter('woocs_geobone_ip', '__return_false');
Parameters:
$state (bool) - true by default
Returns:
(bool) false to skip the first-unique-visit flag
Note: Geo IP rules require the WooCommerce geolocation class, so nothing here runs unless WC_Geolocation is available and geo rules are enabled in the plugin settings.
🌸
Shortcodes, functions, actions and filters reference for FOX WooCommerce Currency Switcher
Codex — FOX Currency Switcher
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.